blog/webapp/templates/blog_post/_table.html

64 lines
1.9 KiB
HTML
Raw Permalink Normal View History

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 %}
2021-05-01 16:19:02 +02:00
{% if "tag" not in skip_columns %}
<th>{{ _("tag") }}</th>
{% endif %}
2020-08-11 13:17:53 +02:00
{% if "created_dt" not in skip_columns %}
<th>{{ _("created_dt") }}</th>
{% endif %}
{% if "updated_dt" not in skip_columns %}
<th>{{ _("updated_dt") }}</th>
{% endif %}
2020-07-08 14:36:13 +02:00
<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 %}
2021-05-01 16:19:02 +02:00
{% if "tag" not in skip_columns %}
<td>
{{ instance.tags }}
</td>
{% endif %}
2020-08-11 13:17:53 +02:00
{% if "created_dt" not in skip_columns %}
<td>
{{ instance.created_dt }}
</td>
{% endif %}
{% if "updated_dt" not in skip_columns %}
<td>
{{ instance.updated_dt }}
</td>
{% endif %}
2020-07-08 14:36:13 +02:00
<td>
2021-05-15 01:04:17 +02:00
{% include "blog_post/_actions.html" %}
2020-07-08 14:36:13 +02:00
</td>
</tr>
{% endfor %}
</tbody>
</table>