Commit 31372fd7 by Scott Duckworth

add last used column to example template

parent 487f9410
...@@ -13,14 +13,16 @@ ...@@ -13,14 +13,16 @@
<th>Fingerprint</th> <th>Fingerprint</th>
<th>Created</th> <th>Created</th>
<th>Last Modified</th> <th>Last Modified</th>
<th>Last Used</th>
<th></th> <th></th>
</tr> </tr>
{% for userkey in userkey_list %} {% for userkey in userkey_list %}
<tr> <tr>
<td>{{ userkey.name }}</td> <td>{{ userkey.name }}</td>
<td>{{ userkey.fingerprint }}</td> <td>{{ userkey.fingerprint }}</td>
<td>{{ userkey.created }}</td> <td>{{ userkey.created|default:"unknown" }}</td>
<td>{{ userkey.last_modified }}</td> <td>{{ userkey.last_modified|default:"unknown" }}</td>
<td>{{ userkey.last_used|default:"never" }}</td>
{% if allow_edit %} {% if allow_edit %}
<td><a href="{% url django_sshkey.views.userkey_edit userkey.pk %}">Edit</a></td> <td><a href="{% url django_sshkey.views.userkey_edit userkey.pk %}">Edit</a></td>
{% endif %} {% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment