kekrozsak/src/KekRozsak/AdminBundle/Resources/views/News/list.html.twig

34 lines
1.0 KiB
Twig

{# vim: ft=htmljinja
#}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block content %}
<h3>Adminisztráció - Hírek</h3>
<table>
<thead>
<tr>
<td></td>
<td>Cím</td>
<td>Írta</td>
<td>Dátum</td>
<td></td>
</tr>
</thead>
<tbody>
{% for item in news %}
<tr>
<td>
{% if item.public %}[Publikus ikon]{% else %}[Nem publikus ikon]{% endif %}
{% if item.sticky %}[Ragadós ikon]{% else %}[Nem ragadós ikon]{% endif %}
{% if item.draft %}[Vázlat ikon]{% else %}[Publikált ikon]{% endif %}
</td>
<td><a href="{{ path('KekRozsakAdminBundle_newsEdit', {slug: item.slug}) }}">{{ item.title }}</a></td>
<td>{{ item.createdBy|userdataspan }}</td>
<td>{{ item.createdAt|date('Y-m-d') }}</td>
<td>[Törlés ikon]</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock content %}