diff options
Diffstat (limited to 'pharos-dashboard/templates')
-rw-r--r-- | pharos-dashboard/templates/account/user_list.html | 42 | ||||
-rw-r--r-- | pharos-dashboard/templates/base.html | 5 |
2 files changed, 47 insertions, 0 deletions
diff --git a/pharos-dashboard/templates/account/user_list.html b/pharos-dashboard/templates/account/user_list.html new file mode 100644 index 0000000..7618dc9 --- /dev/null +++ b/pharos-dashboard/templates/account/user_list.html @@ -0,0 +1,42 @@ +{% extends "dashboard/table.html" %} +{% load staticfiles %} + +{% block table %} + <thead> + <tr> + <th>Username</th> + <th>Company</th> + <th>SSH Key</th> + <th>GPG Key</th> + </tr> + </thead> + <tbody> + {% for user in users %} + <tr> + <th> + {{ user.username }} + </th> + <th> + {{ user.userprofile.company }} + </th> + <th> + <a href={{ user.userprofile.ssh_public_key.url }}>Download</a> + </th> + <th> + <a href={{ user.userprofile.pgp_public_key.url }}>Download</a> + </th> + </tr> + {% endfor %} + </tbody> +{% endblock table %} + + +{% block tablejs %} + <script type="text/javascript"> + $(document).ready(function () { + $('#table').DataTable({ + "order": [[0, "asc"]] + }); + }); + </script> +{% endblock tablejs %}
\ No newline at end of file diff --git a/pharos-dashboard/templates/base.html b/pharos-dashboard/templates/base.html index 64174a1..42156e3 100644 --- a/pharos-dashboard/templates/base.html +++ b/pharos-dashboard/templates/base.html @@ -71,6 +71,11 @@ class="fa fa-fw"></i>Resources </a> </li> + <li> + <a href="{% url 'account:users' %}"><i + class="fa fa-fw"></i>Users + </a> + </li> </ul> </div> <!-- /.sidebar-collapse --> |