c2b8193846eb563c9ebdb294e69d8b3261ae0bea
[pharos.git] / tools / pharos-dashboard / templates / 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>Company</th>
9         <th>SSH Key</th>
10         <th>GPG Key</th>
11     </tr>
12     </thead>
13     <tbody>
14     {% for user in users %}
15         <tr>
16             <td>
17                 {{ user.username }}
18             </td>
19             <td>
20                 {{ user.userprofile.company }}
21             </td>
22             <td>
23                 {% if user.userprofile.ssh_public_key %}
24                 <a href={{ user.userprofile.ssh_public_key.url }}>SSH</a>
25                 {% endif %}
26             </td>
27             <td>
28                 {% if user.userprofile.pgp_public_key %}
29                 <a href={{ user.userprofile.pgp_public_key.url }}>GPG</a>
30                 {% endif %}
31             </td>
32         </tr>
33     {% endfor %}
34     </tbody>
35 {% endblock table %}
36
37
38 {% block tablejs %}
39     <script type="text/javascript">
40         $(document).ready(function () {
41             $('#table').DataTable({
42                 "order": [[0, "asc"]]
43             });
44         });
45     </script>
46 {% endblock tablejs %}