novaconium/views/pages.html.twig

31 lines
835 B
Twig

{% extends '@novaconium/master.html.twig' %}
{% block content %}
<h1>{{title}}</h1>
<p><a href="/novaconium/page/create">Create Page</a></p>
<table class="pages-table">
<thead>
<tr>
<th>Title</th>
<th>Created</th>
<th>Updated</th>
<th>Draft</th>
</tr>
</thead>
<tbody>
{% for page in pages %}
<tr>
<td><a href="/novaconium/page/edit/{{ page.id }}">{{ page.title }}</a></td>
<td>{{ page.created }}</td>
<td>{{ page.updated|default('Not updated') }}</td>
<td>{{ page.draft ? 'Draft' : 'Published' }}</td>
</tr>
{% else %}
<tr>
<td colspan="6">No pages found.</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}