slinky/slinky/templates/list.html
2021-12-28 13:51:57 +00:00

36 lines
1.2 KiB
HTML

{% include '_head.html' -%}
<!-- Begin page content -->
<main class="container">
<div class="container">
<h1 class="mt-5">Add a shortcode</h1>
</div>
<br />
<div id="content">
{% if shortcodes -%}
<table class="table table-striped table-sm">
<thead>
<tr>
<th scope="col">Shortcode</th>
<th scope="col">URL</th>
<th scope="col">Remaining views</th>
<th scope="col">Expiry date</th>
</tr>
</thead>
<tbody>
{% for shortcode in shortcodes -%}
<tr>
<td>{{ shortcode.shortcode }}</td>
<td><a href="{{shortcode.url}}">{{ shortcode.url }}</a></td>
<td>{{ shortcode.fixed_views if shortcode.fixed_views >= 0 else 'Unlimited' }}</td>
<td>{{ shortcode.expiry if shortcode.expiry != '9999-12-31 23:59:59.999999' else 'None' }}</td>
</tr>
{% endfor -%}
</tbody>
</table>
{% endif -%}
</div>
</main>
{% include '_tail.html' -%}