Commit eb089439 by Scott Duckworth

make example templates compatible with django 1.4+

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