User can delete the image they uploaded

This commit is contained in:
XD-DENG
2017-07-08 11:22:21 +08:00
parent 0e73da4df9
commit 4b693ddb69
4 changed files with 42 additions and 3 deletions

View File

@@ -58,13 +58,15 @@
<th>Image ID</th>
<th>Timestamp</th>
<th>Image Name</th>
<th>Action</th>
</tr>
</thead>
{% for image_id, timestamp, image_name in images %}
{% for image_id, timestamp, image_name, act in images %}
<tr>
<td> {{ image_id }} </td>
<td> {{ timestamp }} </td>
<td> {{ image_name }} </td>
<td><a href={{act}}>Delete</a></td>
</tr>
{% endfor %}