{% if articles.getTotalItemCount > 0 %}
{{ 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 %}
{% 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 %} |