1
0
mirror of https://github.com/Adam-Ant/QuotesDB synced 2025-06-14 21:31:12 +00:00

Add admin moderation and deletion system

This commit is contained in:
Adam Dodman
2017-10-05 17:34:39 +01:00
parent 60421dcdfb
commit 23f622fe21
2 changed files with 41 additions and 4 deletions

View File

@ -25,15 +25,23 @@
<th>User</th>
<th>Quote</th>
<th>Context</th>
{% if data[1] %}
<th>Added By:</th>
<th><span class="glyphicon glyphicon-trash"></span></th>
{% endif %}
</tr>
</thead>
<tbody>
{% for entry in data %}
{% for entry in data[0] %}
<tr>
<td>{{ "{:%Y/%m/%d %H:%M:%S}".format(entry[2]) }}</td>
<td><a href="/">{{ entry[2] }}</a></td>
<td>{{ uid_to_user(entry[3]) }}</td>
<td>{{ entry[1] }}</td>
<td>{{ entry[4] }}</td>
{% if data[1] %}
<td>{{ uid_to_user(entry[5]) }}</td>
<td><a href="/deletequote?id={{ entry[0] }}" class="btn btn-danger"role="button" ><span class="glyphicon glyphicon-trash"></span></a></td>
{% endif %}
</tr>
{% endfor %}
</tbody>