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 | 3f96bdbe6542c2600def600514d577aea351ff3d (patch) | |
tree | 4b03eff09a7ce83fcb04371c70f0d8579eaf3171 /tools/pharos-dashboard/templates/account | |
parent | 1f3498a73ca2ca15b811205e8a902780a25fb728 (diff) |
Fix table HTML
JIRA: RELENG-12
Change-Id: I780c1fc0daab9ee2f2599c51f31eb416a2c7dbbf
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 | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/tools/pharos-dashboard/templates/account/user_list.html b/tools/pharos-dashboard/templates/account/user_list.html index 7618dc95..c2b81938 100644 --- a/tools/pharos-dashboard/templates/account/user_list.html +++ b/tools/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 %} |