Mercurial > public > sg101
comparison gpp/templates/weblinks/navigation.html @ 310:daa2916f5b34
Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 20 Jan 2011 04:03:48 +0000 |
parents | 7e8d2dda99e3 |
children | 88b2b9cb8c1f |
comparison
equal
deleted
inserted
replaced
309:8a0bae48b6ca | 310:daa2916f5b34 |
---|---|
1 {% load url from future %} | |
1 <div class="app-logo"> | 2 <div class="app-logo"> |
2 <img src="{{ MEDIA_URL }}icons/weblinks-logo.jpg" alt="Links Logo" title="Links" /> | 3 <img src="{{ MEDIA_URL }}icons/weblinks-logo.jpg" alt="Links Logo" title="Links" /> |
3 </div> | 4 </div> |
4 <ul class="app-menu"> | 5 <ul class="app-menu"> |
5 <li><a href="{% url weblinks-main %}">Categories</a></li> | 6 <li><a href="{% url 'weblinks-main' %}">Categories</a></li> |
6 <li><a href="{% url weblinks-new_links %}">New</a></li> | 7 <li><a href="{% url 'weblinks-new_links' %}">New</a></li> |
7 <li><a href="{% url weblinks-popular_links %}">Popular</a></li> | 8 <li><a href="{% url 'weblinks-popular_links' %}">Popular</a></li> |
8 {% if user.is_authenticated %} | 9 {% if user.is_authenticated %} |
9 <li><a href="{% url weblinks-add_link %}">Add Link</a></li> | 10 <li><a href="{% url 'weblinks-add_link' %}">Add Link</a></li> |
10 {% endif %} | 11 {% endif %} |
11 </ul> | 12 </ul> |
12 <center> | 13 <center> |
13 <form action="{% url weblinks-random_link %}" method="post">{% csrf_token %} | 14 <form action="{% url 'weblinks-random_link' %}" method="post">{% csrf_token %} |
14 <input type="submit" value="Visit a Random Link" /> | 15 <input type="submit" value="Visit a Random Link" /> |
15 </form> | 16 </form> |
16 </center> | 17 </center> |