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