vendor\uvdesk\support-center-bundle\Resources\views\Templates\sidepanel.html.twig line 1

Open in your IDE?
  1. <div class="uv-paper-aside">
  2.     {% if popArticles is defined and popArticles %}
  3.         <aside>
  4.             <h3>{{'Popular Articles'|trans}}</h3>
  5.             <ul>
  6.                 {% for popArticle in popArticles %}
  7.                     <li><a href="{{path('helpdesk_knowledgebase_read_slug_article', {'slug': popArticle.slug})}}"> {% if popArticle.stared %}<span class="uv-icon-star uv-pre"></span>{% endif %} {{ popArticle.name }}</a></li>
  8.                     {#<li><a href="{{path('helpdesk_knowledgebase_read_article', {'article': popArticle.id})}}"> {% if popArticle.stared %}<span class="uv-icon-star uv-pre"></span>{% endif %} {{popArticle.name}}</a></li>#}
  9.                 {% endfor %}
  10.             </ul>
  11.         </aside>
  12.     {% endif %}
  13.     
  14.     {% if relatedArticles is defined and relatedArticles %}
  15.         <aside class="uv-margin-top-30">
  16.             <h3>{{'Related Articles'|trans}}</h3>
  17.             <ul>
  18.                 {% for relatedArticle in relatedArticles %}
  19.                     <li><a href="{{path('helpdesk_knowledgebase_read_slug_article', {'slug': relatedArticle.slug})}}"> {% if relatedArticle.stared %}<span class="uv-icon-star uv-pre"></span>{% endif %} {{ relatedArticle.name }}</a></li>
  20.                     {#<li><a href="{{path('helpdesk_knowledgebase_read_article', {'article': relatedArticle.articleId})}}"> {% if relatedArticle.stared %}<span class="uv-icon-star uv-pre"></span>{% endif %} {{relatedArticle.name}}</a></li>#}
  21.                 {% endfor %}
  22.             </ul>
  23.         </aside>
  24.     {% endif %}
  25.     {% if articleTags is defined and articleTags %}
  26.         <aside class="uv-margin-top-30">
  27.             <h3>{{'Tags'|trans}}</h3>
  28.             <div class="uv-tags">
  29.                 {% for tag in articleTags %}
  30.                     <span><a href="{{path('helpdesk_knowledgebase_tag', {'tag': tag.id, 'name': tag.name})}}">{{tag.name}}</a></span>
  31.                 {% endfor %}
  32.             </div>
  33.         </aside>
  34.     {% endif %}
  35. </div>