{% extends 'admin/base.html.twig' %} {% block content %}
{% embed "admin/panels/page-title-panel.html.twig" %} {% block pageTitle %} News {% endblock %} {% endembed %}
{% if blogArticles is defined and blogArticles|length > 0 %} {% for blogArticle in blogArticles %} {% endfor %} {% endif %}
ID Title Summary Is Published Author Date Created    
{{ blogArticle.id }} {{ blogArticle.title }} {{ blogArticle.summary|default("")|striptags|slice(0, 100) ~ '...' }} {% if blogArticle.isPublished is same as(true) %} Yes {% else %} No {% endif %} {% if blogArticle.author is not null %} {{ blogArticle.author.firstName ~ ' ' ~ blogArticle.author.lastName }} {% endif %} {% if blogArticle.dateCreated is not null %} {{ blogArticle.dateCreated.format('Y-m-d') }} {% endif %}
{% endblock %} {% block scripts_post_body %} {% endblock %}