aboutsummaryrefslogtreecommitdiffstats
path: root/templates/users.html
blob: 3ed4aa6f8dffd14530ac16c31cedbed70c224664 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<table>
  <tr>
    <th>id</th>
    <th>username</th>
    <th>real name</th>
    <th>email</th>
    <th>action</th>
  </tr>
  {{# users }}
    <tr>
      <td>{{ .id }}</td>
      <td>{{ .username }}</td>
      <td>{{ .realname() }}</td>
      <td>{{ .email() }}</td>
      <td>
        <a href="/users/{{ .id }}/delete" id="delete_user">Delete</a>
        <a href="/users/{{ .id }}/edit" id="edit_user_{{ .id }}">Edit</a>
      </td>
    </tr>
  {{/ users }}
</table>

<div class="actions">
  <a href="/users/new" id="new_user">Create new user</a>
</div>