Mercurial > public > sg101
comparison gpp/templates/weblinks/navigation.html @ 21:884839ddbfde
Webinks: added a navigation template tag so views don't have to keep constructing the searc form. Also provided a count of search results on the template.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 19 Apr 2009 21:00:06 +0000 |
parents | |
children | db40c2754580 |
comparison
equal
deleted
inserted
replaced
20:c0d0779b266f | 21:884839ddbfde |
---|---|
1 <div class="weblinks-search"> | |
2 <form action="{% url weblinks-search page=1 %}" method="post"> | |
3 <p>{{ search_form.text }} <input type="submit" value="Search" /></p> | |
4 </form> | |
5 </div> | |
6 | |
7 <ul class="app-menu"> | |
8 <li><a href="{% url weblinks.views.link_index %}">Categories</a></li> | |
9 <li><a href="{% url weblinks.views.new_links %}">New</a></li> | |
10 <li><a href="{% url weblinks.views.popular_links %}">Popular</a></li> | |
11 <li><a href="{% url weblinks.views.random_link %}" target="_blank">Random</a></li> | |
12 {% if user.is_authenticated %} | |
13 <li><a href="{% url weblinks.views.add_link %}">Add</a></li> | |
14 {% endif %} | |
15 </ul> |