comparison gpp/templates/weblinks/navigation.html @ 165:952e05cb3d80

Implement #49; use POST for updating link hit counts. Also refactored a bit and use javascript to report broken links.
author Brian Neal <bgneal@gmail.com>
date Sun, 03 Jan 2010 04:15:14 +0000
parents db40c2754580
children 6a5549c2efb5
comparison
equal deleted inserted replaced
164:f7a6b8fe4556 165:952e05cb3d80
9 9
10 <ul class="app-menu"> 10 <ul class="app-menu">
11 <li><a href="{% url weblinks.views.link_index %}">Categories</a></li> 11 <li><a href="{% url weblinks.views.link_index %}">Categories</a></li>
12 <li><a href="{% url weblinks.views.new_links %}">New</a></li> 12 <li><a href="{% url weblinks.views.new_links %}">New</a></li>
13 <li><a href="{% url weblinks.views.popular_links %}">Popular</a></li> 13 <li><a href="{% url weblinks.views.popular_links %}">Popular</a></li>
14 <li><a href="{% url weblinks.views.random_link %}" target="_blank">Random</a></li>
15 {% if user.is_authenticated %} 14 {% if user.is_authenticated %}
16 <li><a href="{% url weblinks.views.add_link %}">Add</a></li> 15 <li><a href="{% url weblinks.views.add_link %}">Add Link</a></li>
17 {% endif %} 16 {% endif %}
18 </ul> 17 </ul>
18 <center>
19 <form action="{% url weblinks.views.random_link %}" method="post">
20 <input type="submit" value="Visit a Random Link" />
21 </form>
22 </center>