Skip to content

Instantly share code, notes, and snippets.

@DeskWOW DeskWOW/2-body.html Secret
Last active Aug 29, 2015

Embed
What would you like to do?
Help Widget (Backend) -- Note: Header should be blank
<div>
<!--begin:portal_body-->
{% if page == "page_index" %}
<!--begin:page_index--><div class="topics">
<div class="no-results">No results.</div>
{% for topic in topics %}
<div class="topic topic-{{ topic.id }}" data-topic_id="{{ topic.id }}">
<a class="topic-link" href="#">{{ topic.name }}</a>
<div class="articles hidden">
{% for article in topic.articles %}
<div class="article article-{{ article.id }}" data-keywords="{{ article.keywords }}" data-article_id="{{ article.id }}">
<a class="article-link" href="#">{{ article.subject }}</a>
<div class="article-container hidden">
<div class="article-actual">
<h3 class="article-heading"><a href="{{ article.public_url }}" target="_blank">{{ article.subject }}</a></h3>
<div class="article-body"></div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% endfor %}
</div><!--end:page_index-->
{% elsif page == "page_article" %}
<!--begin:page_article--><div class="article article-{{ article.id }}" data-keywords="{{ article.keywords }}">
<a class="article-link" href="#">{{ article.subject }}</a>
<div class="article-container hidden">
<div class="article-actual">
<h3 class="article-heading"><a href="{{ article.public_url }}" target="_blank">{{ article.subject }}</a></h3>
<div class="article-body">{{ article.body }}</div>
</div>
</div>
</div><!--end:page_article-->
{% elsif page == "page_topic" %}
<!--begin:page_topic--><!--end:page_topic-->
{% elsif page == "page_search_result" %}
<!--begin:page_search_result--><!--end:page_search_result-->
{% elsif page == "question_show" %}
<!--begin:question_show--><!--end:question_show-->
{% elsif page == "question_new" %}
<!--begin:question_new--><!--end:question_new-->
{% elsif page == "question_pre_create" %}
<!--begin:question_pre_create--><!--end:question_pre_create-->
{% elsif page == "email_new" %}
<!--begin:email_new--><!--end:email_new-->
{% elsif page == "email_pre_create" %}
<!--begin:email_pre_create--><!--end:email_pre_create-->
{% elsif page == "email_submitted" %}
<!--begin:email_submitted--><!--end:email_submitted-->
{% elsif page == "chat_new" %}
<!--begin:chat_new--><!--end:chat_new-->
{% elsif page == "chat_pre_create" %}
<!--begin:chat_pre_create--><!--end:chat_pre_create-->
{% elsif page == "myportal_index" %}
<!--begin:myportal_index--><!--end:myportal_index-->
{% elsif page == "myportal_show" %}
<!--begin:myportal_show--><!--end:myportal_show-->
{% elsif page == "login" %}
<!--begin:login--><!--end:login-->
{% elsif page == "registration" %}
<!--begin:registration--><!--end:registration-->
{% elsif page == "forgot_password" %}
<!--begin:forgot_password--><!--end:forgot_password-->
{% elsif page == "myaccount" %}
<!--begin:myaccount--><!--end:myaccount-->
{% elsif page == "authentication_verification" %}
<!--begin:authentication_verification--><!--end:authentication_verification-->
{% elsif page == "customer_feedback" %}
<!--begin:customer_feedback--><!--end:customer_feedback-->
{% elsif page == "customer_feedback_completed" %}
<!--begin:customer_feedback_completed--><!--end:customer_feedback_completed-->
{%endif%}
<!--end:portal_body-->
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.