{% extends "Global/layout.html.twig" %} {% set pagetitle = 'Manage help center articles' | trans %} {% block title %}{{pagetitle}}{% endblock %} {% block content %} {% set navigation = [{ "dashboard_index": ('Dashboard' | trans), "current":(pagetitle) }] %} {% include "Global/navigation.html.twig" with navigation %}
{{ "%resultsCount% result(s) found"|trans({'%resultsCount%': articles.getTotalItemCount}) }}
{% if articles.getTotalItemCount > 0 %}
{% for article in articles %} {% endfor %}
{{'Title' | trans}} {{'Category' | trans}} {{'Views' | trans}} {{'Last updated' | trans}} {{'Status' | trans}}
{{ article.title }} {% if article.category.parent %} {% if article.category.parent.parent %} {{ article.category.parent.parent.name }} {% endif %} {{ article.category.parent.name }} {% endif %} {{ article.category.name }} {{ article.views }} {{ "views"|trans }} {{ article.updatedAt|localizeddate('none', 'none', app.request.locale, date_timezone, date_format) }} {% if article.featured %} {{ "Featured"|trans }}

{% endif %} {% if article.hidden %} {{ "Hidden"|trans }} {% else %} {{ "Visible"|trans }} {% endif %} {% if article.deletedAt %}

{{ "Deleted"|trans }} {% endif %}
{{ knp_pagination_render(articles, null, {}, {'align': 'center'}) }}
{% else %} {% include "Global/message.html.twig" with { type: "info", message: ('No articles found'|trans), icon: "fas fa-exclamation-circle" } %} {% endif %}
{% endblock %}