diff options
author | maxbr <maxbr@mi.fu-berlin.de> | 2016-09-12 11:19:18 +0200 |
---|---|---|
committer | maxbr <maxbr@mi.fu-berlin.de> | 2016-09-12 11:19:18 +0200 |
commit | 79adac907cfef1222e9b29b4feb3b2f71b660e30 (patch) | |
tree | 47e59bbdef290e05e089147b40909d1086a504c7 /tools/pharos-dashboard/templates/account | |
parent | 167ed9ae59ded96d526b421c932b41554465f9eb (diff) |
Add user info panel
JIRA: PHAROS-264
Change-Id: I5404812a78755ce1026401b8dda1f0d167dc6fda
Signed-off-by: maxbr <maxbr@mi.fu-berlin.de>
Diffstat (limited to 'tools/pharos-dashboard/templates/account')
-rw-r--r-- | tools/pharos-dashboard/templates/account/user_list.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tools/pharos-dashboard/templates/account/user_list.html b/tools/pharos-dashboard/templates/account/user_list.html new file mode 100644 index 00000000..7618dc95 --- /dev/null +++ b/tools/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 |