layout |
---|
default |
{%- comment -%}
{%- endcomment -%}
{%- assign prompts = site.data.troubleshooting-prompts -%}
{%- for prompt in prompts -%}
{%- comment -%}
{%- endcomment -%}
{%- if prompt.id -%}
{%- comment -%}
{%- endcomment -%}
{%- assign visibility = "d-none" -%}
{%- if prompt.id == 1 -%}
{%- assign visibility = "" -%}
{%- endif -%}
{%- comment -%}
{%- endcomment -%}
{% assign filename_test = prompt.body | split: " " | first %}
{%- comment -%}
{%- endcomment -%}
{%- if prompt.type == "answer" -%}
{%- if prompt.body and filename_test contains ".md" -%}
{{site.data.icons.link}}
{% else %}
{{site.data.icons.link}}
{%- endif -%}
{%- endif -%}
{%- if prompt.body and filename_test contains ".md" -%}
{% assign page_path = "t/" | append: prompt.body %}
{%- if prompt.type == "question" -%}
{% assign page_path = page_path | replace: "t/", "q/" %}
{% endif %}
{% assign prompt_page = site.pages | where: "path", page_path | first %}
{%- comment -%}
{%- endcomment -%}
{%- if prompt_page.content -%}
{%- endif -%}
{%- endfor -%}
{%- comment -%}
{%- endcomment -%}
{{prompt_page.content | markdownify}}
{%- elsif prompt.type == "answer" -%}
<script>alert("ERROR: Prompt {{prompt.id}}'s specified content file {{page_path}} does not exist.")</script>
{% endif %}
{%- elsif prompt.body and prompt.type == "question" -%}
{{prompt.body | markdownify}}
{% else %}
{% assign page_path = "t/" | append: prompt.id | append: ".md" %}
{%- if prompt.type == "question" -%}
{% assign page_path = page_path | replace: "t/", "q/" %}
{% endif %}
{% assign prompt_page = site.pages | where: "path", page_path | first %}
{%- comment -%}
{%- endcomment -%}
{%- if prompt_page.content -%}
{{prompt_page.content | markdownify}}
{%- elsif prompt.type == "answer" -%}
<script>alert("ERROR: Prompt {{prompt.id}}'s has no content file specified and the default file {{page_path}} does not exist.")</script>
{% endif %}
{%- endif -%}
{%- comment -%}
{%- endcomment -%}
{%- if prompt.type == "question" -%}
{%- for each_option in prompt.options -%}
{%- if each_option.option and each_option.go_to_id -%}
{{site.data.icons.circle}}{{each_option.option | markdownify}}
{%- endif -%}
{%- endfor -%}
{%- endif -%}
This solved my issue
This did not solve my issue
<textarea class="form-control mt-3" placeholder="Leave a comment here" id="feedbackComment"></textarea>
Submit
Thanks for your feedback!
{{site.data.icons.discord | replace: "1rem", "1.5rem"}}
Still stuck? Get help in the Rocket Pool Discord!
{{site.data.icons.back_arrow}}Back