Mercurial > public > sg101
annotate gpp/templates/weblinks/navigation.html @ 197:2baadae33f2e
Got autocomplete working for the member search. Updated django and ran into a bug where url tags with comma separated kwargs starting consuming tons of CPU throughput. The work-around is to cut over to using spaces between arguments. This is now allowed to be consistent with other tags. Did some query optimization for the news app.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 10 Apr 2010 04:32:24 +0000 |
parents | 6a5549c2efb5 |
children | 7e8d2dda99e3 |
rev | line source |
---|---|
bgneal@26 | 1 <div class="app-logo"> |
bgneal@26 | 2 <img src="{{ MEDIA_URL }}icons/weblinks-logo.jpg" alt="Links Logo" title="Links" /> |
bgneal@26 | 3 </div> |
bgneal@21 | 4 <div class="weblinks-search"> |
bgneal@194 | 5 <form action="{% url weblinks-search page=1 %}" method="post">{% csrf_token %} |
bgneal@21 | 6 <p>{{ search_form.text }} <input type="submit" value="Search" /></p> |
bgneal@21 | 7 </form> |
bgneal@21 | 8 </div> |
bgneal@21 | 9 |
bgneal@21 | 10 <ul class="app-menu"> |
bgneal@21 | 11 <li><a href="{% url weblinks.views.link_index %}">Categories</a></li> |
bgneal@21 | 12 <li><a href="{% url weblinks.views.new_links %}">New</a></li> |
bgneal@21 | 13 <li><a href="{% url weblinks.views.popular_links %}">Popular</a></li> |
bgneal@21 | 14 {% if user.is_authenticated %} |
bgneal@165 | 15 <li><a href="{% url weblinks.views.add_link %}">Add Link</a></li> |
bgneal@21 | 16 {% endif %} |
bgneal@21 | 17 </ul> |
bgneal@165 | 18 <center> |
bgneal@194 | 19 <form action="{% url weblinks.views.random_link %}" method="post">{% csrf_token %} |
bgneal@165 | 20 <input type="submit" value="Visit a Random Link" /> |
bgneal@165 | 21 </form> |
bgneal@165 | 22 </center> |