vendor/uvdesk/support-center-bundle/Resources/views/Knowledgebase/search.html.twig line 1

Open in your IDE?
  1. {% extends "@UVDeskSupportCenter/Templates/layout.html.twig" %}
  2. {% block title %}{% trans %}Helpdesk Search{% endtrans %}{% endblock %}
  3. {% block ogtitle %}{% trans %}Helpdesk Search{% endtrans %}{% endblock %}
  4. {% block twtitle %}{% trans %}Helpdesk Search{% endtrans %}{% endblock %}
  5. {% block metaDescription %}{% trans %}search.metaDescription{% endtrans %}{% endblock %}
  6. {% block metaKeywords %}{% trans %}search.metaKeywords{% endtrans %}{% endblock %}
  7. {% block body %}
  8.     <div class="uv-paper-article">
  9.         <div class="uv-paper-section">
  10.             <section>
  11.                 <h1 class="uv-folder-title" data-count="{{articles|length}} {{"Articles"|trans}}">{{ "Search results for %search%"|trans({ "%search%": search }) }}</h1>
  12.             </section>
  13.             <section class="uv-margin-top-30">
  14.                 {% if articles %}
  15.                     <ul>
  16.                         {% for article in articles %}
  17.                             <li> {% if article.stared %}<span class="uv-icon-star uv-pre"></span>{% endif %} <a href="{{ path('helpdesk_knowledgebase_read_slug_article', {'slug': article.slug})}}">{{ article.name }}</a></li>
  18.                         {% endfor %}
  19.                     </ul>
  20.                 {% else %}
  21.                     <p>{{"No Article Found!"|trans}}</p>
  22.                 {% endif %}
  23.             </section>
  24.         </div>
  25.         
  26.         {# @TODO: needs to implementds pulpular artcles #}
  27.         {# {% include "@UVDeskSupportCenter/Templates/popularArticle.html.twig" %} #} 
  28.     </div>
  29.     {{parent()}}
  30. {% endblock %}