aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-07-31 20:12:07 +0200
committerHarald Eilertsen <haraldei@anduin.net>2018-07-31 20:12:07 +0200
commita1bba63fae68e7e6a680b14b674d9c47dfcf4862 (patch)
tree6484735d42d923aad111766b6c6a3cf755e92377 /templates
parent706a887f9b5641d3aa609a0a8b4d3d68b659f653 (diff)
downloadrocket-blog-a1bba63fae68e7e6a680b14b674d9c47dfcf4862.tar.gz
rocket-blog-a1bba63fae68e7e6a680b14b674d9c47dfcf4862.tar.bz2
rocket-blog-a1bba63fae68e7e6a680b14b674d9c47dfcf4862.zip
Implement deleting users.
Diffstat (limited to 'templates')
-rw-r--r--templates/users.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/users.html b/templates/users.html
index 8490311..4656e88 100644
--- a/templates/users.html
+++ b/templates/users.html
@@ -4,6 +4,7 @@
<th>username</th>
<th>real name</th>
<th>email</th>
+ <th>action</th>
</tr>
{{# users }}
<tr>
@@ -11,6 +12,11 @@
<td>{{ .username }}</td>
<td>{{ .realname() }}</td>
<td>{{ .email() }}</td>
+ <td><a href="/users/{{ .id }}/delete" id="delete_user">Delete</a></td>
</tr>
{{/ users }}
</table>
+
+<div class="actions">
+ <a href="/users/new" id="new_user">Create new user</a>
+</div>