2020-07-08 14:36:13 +02:00
|
|
|
<table class="full-width data-table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
{% if "filename" not in skip_columns %}
|
|
|
|
<th>{{ _("filename") }}</th>
|
|
|
|
{% endif %}
|
2020-07-13 11:54:16 +02:00
|
|
|
{% if "title" not in skip_columns %}
|
|
|
|
<th>{{ _("title") }}</th>
|
|
|
|
{% endif %}
|
2020-07-08 14:36:13 +02:00
|
|
|
{% if "body" not in skip_columns %}
|
|
|
|
<th>{{ _("body") }}</th>
|
|
|
|
{% endif %}
|
|
|
|
<th>{{ _("Actions") }}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for instance in instances %}
|
|
|
|
<tr>
|
|
|
|
{% if "filename" not in skip_columns %}
|
|
|
|
<td>
|
|
|
|
{{ instance.filename }}
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
2020-07-13 11:54:16 +02:00
|
|
|
{% if "title" not in skip_columns %}
|
|
|
|
<td>
|
|
|
|
{{ instance.title }}
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
2020-07-08 14:36:13 +02:00
|
|
|
{% if "body" not in skip_columns %}
|
|
|
|
<td>
|
|
|
|
{{ instance.body }}
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
<td>
|
|
|
|
<a href="{{ url_for('update_blog_post', uuid=instance.id, _next=request.path) }}">e</a> |
|
|
|
|
<a href="{{ url_for('delete_blog_post', uuid=instance.id, _next=request.path) }}">x</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|