Commit eb089439 by Scott Duckworth

make example templates compatible with django 1.4+

parent c2ea0e0a
{% load url from future %}
<h1>My Keys</h1>
{% if messages %}
<ul class="messages">
......@@ -6,7 +7,7 @@
{% endfor %}
</ul>
{% endif %}
<p><a href="{% url django_sshkey.views.userkey_add %}">Add Key</a></p>
<p><a href="{% url "django_sshkey.views.userkey_add" %}">Add Key</a></p>
<table>
<tr>
<th>Key</th>
......@@ -29,9 +30,9 @@
<td>{{ userkey.last_used|default:"never" }}</td>
<td>
{% if allow_edit %}
<a href="{% url django_sshkey.views.userkey_edit userkey.pk %}">Edit</a>
<a href="{% url "django_sshkey.views.userkey_edit" userkey.pk %}">Edit</a>
{% endif %}
<a href="{% url django_sshkey.views.userkey_delete userkey.pk %}">Delete</a>
<a href="{% url "django_sshkey.views.userkey_delete" userkey.pk %}">Delete</a>
</td>
</tr>
{% endfor %}
......
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