add nick
[laas.git] / src / templates / base / account / user_list.html
1 {% extends "dashboard/table.html" %}
2 {% load staticfiles %}
3
4 {% block table %}
5     <thead>
6     <tr>
7         <th>Username</th>
8         <th>Full Name</th>
9         <th>Email</th>
10         <th>Company</th>
11         <th>SSH Key</th>
12         <th>GPG Key</th>
13     </tr>
14     </thead>
15     <tbody>
16     {% for user in users %}
17         <tr>
18             <td>
19                 {{ user.username }}
20             </td>
21             <td>
22                 {{ user.userprofile.full_name }}
23             </td>
24             <td>
25                 {{ user.userprofile.email_addr }}
26             </td>
27             <td>
28                 {{ user.userprofile.company }}
29             </td>
30             <td>
31                 {% if user.userprofile.ssh_public_key %}
32                     <a href={{ user.userprofile.ssh_public_key.url }}>SSH</a>
33                 {% endif %}
34             </td>
35             <td>
36                 {% if user.userprofile.pgp_public_key %}
37                     <a href={{ user.userprofile.pgp_public_key.url }}>GPG</a>
38                 {% endif %}
39             </td>
40         </tr>
41     {% endfor %}
42     </tbody>
43 {% endblock table %}
44
45
46 {% block tablejs %}
47     <script type="text/javascript">
48         $(document).ready(function () {
49             $('#table').DataTable({
50         scrollX: true,
51                 "order": [[0, "asc"]]
52             });
53         });
54     </script>
55 {% endblock tablejs %}