Mercurial > public > sg101
diff 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 |
line wrap: on
line diff
--- a/gpp/templates/weblinks/navigation.html Mon Dec 28 16:52:42 2009 +0000 +++ b/gpp/templates/weblinks/navigation.html Sun Jan 03 04:15:14 2010 +0000 @@ -11,8 +11,12 @@ <li><a href="{% url weblinks.views.link_index %}">Categories</a></li> <li><a href="{% url weblinks.views.new_links %}">New</a></li> <li><a href="{% url weblinks.views.popular_links %}">Popular</a></li> -<li><a href="{% url weblinks.views.random_link %}" target="_blank">Random</a></li> {% if user.is_authenticated %} -<li><a href="{% url weblinks.views.add_link %}">Add</a></li> +<li><a href="{% url weblinks.views.add_link %}">Add Link</a></li> {% endif %} </ul> +<center> + <form action="{% url weblinks.views.random_link %}" method="post"> + <input type="submit" value="Visit a Random Link" /> + </form> +</center>