annotate gpp/templates/weblinks/navigation.html @ 160:2eb3984ccb15
Implement #45, add a who's online feature for the forums. Created middleware that caches usernames and guest session ids in the cache. Added a tag that displays this info.
author |
Brian Neal <bgneal@gmail.com> |
date |
Tue, 22 Dec 2009 02:08:05 +0000 |
parents |
db40c2754580 |
children |
952e05cb3d80 |
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@21
|
5 <form action="{% url weblinks-search page=1 %}" method="post">
|
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 <li><a href="{% url weblinks.views.random_link %}" target="_blank">Random</a></li>
|
bgneal@21
|
15 {% if user.is_authenticated %}
|
bgneal@21
|
16 <li><a href="{% url weblinks.views.add_link %}">Add</a></li>
|
bgneal@21
|
17 {% endif %}
|
bgneal@21
|
18 </ul>
|