summaryrefslogtreecommitdiffstats
path: root/tools/pharos-dashboard/templates/account/user_list.html
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pharos-dashboard/templates/account/user_list.html')
-rw-r--r--tools/pharos-dashboard/templates/account/user_list.html26
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 %}