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 | ed84f733591f2b6cede955ce1ff91f647581f0ff (patch) | |
tree | a3bb94cc4fb07aeee01614028c85a20385977adf /pharos-dashboard/templates/account | |
parent | c19db1ed0fcbf232a7a9045e8d5680b93929dddd (diff) |
Add user info panel
JIRA: PHAROS-264
Change-Id: I5404812a78755ce1026401b8dda1f0d167dc6fda
Signed-off-by: maxbr <maxbr@mi.fu-berlin.de>
Diffstat (limited to 'pharos-dashboard/templates/account')
-rw-r--r-- | pharos-dashboard/templates/account/user_list.html | 42 |
1 files changed, 42 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 |