diff options
author | maxbr <maxbr@mi.fu-berlin.de> | 2016-09-19 10:10:54 +0200 |
---|---|---|
committer | maxbr <maxbr@mi.fu-berlin.de> | 2016-09-19 10:10:54 +0200 |
commit | 176188d16eab0a8c56537c2c6d119a6807f47999 (patch) | |
tree | 022c19dc8de6c605702687c956e287fbd15f68e1 /pharos-dashboard/templates/account/user_list.html | |
parent | ed84f733591f2b6cede955ce1ff91f647581f0ff (diff) |
Fix table HTML
JIRA: RELENG-12
Change-Id: I780c1fc0daab9ee2f2599c51f31eb416a2c7dbbf
Signed-off-by: maxbr <maxbr@mi.fu-berlin.de>
Diffstat (limited to 'pharos-dashboard/templates/account/user_list.html')
-rw-r--r-- | pharos-dashboard/templates/account/user_list.html | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/pharos-dashboard/templates/account/user_list.html b/pharos-dashboard/templates/account/user_list.html index 7618dc9..c2b8193 100644 --- a/pharos-dashboard/templates/account/user_list.html +++ b/pharos-dashboard/templates/account/user_list.html @@ -13,18 +13,22 @@ <tbody> {% for user in users %} <tr> - <th> + <td> {{ user.username }} - </th> - <th> + </td> + <td> {{ 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> + </td> + <td> + {% if user.userprofile.ssh_public_key %} + <a href={{ user.userprofile.ssh_public_key.url }}>SSH</a> + {% endif %} + </td> + <td> + {% if user.userprofile.pgp_public_key %} + <a href={{ user.userprofile.pgp_public_key.url }}>GPG</a> + {% endif %} + </td> </tr> {% endfor %} </tbody> @@ -39,4 +43,4 @@ }); }); </script> -{% endblock tablejs %}
\ No newline at end of file +{% endblock tablejs %} |