Mercurial > public > sg101
comparison gpp/templates/forums/forum_index.html @ 113:d97ceb95ce02
Forums: ForumLastVisit logic in place. Need to add code for topics and posts next.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 11 Oct 2009 19:10:54 +0000 |
parents | e5faf9f0c11a |
children | 535d02d1c017 |
comparison
equal
deleted
inserted
replaced
112:d1b0b86441c0 | 113:d97ceb95ce02 |
---|---|
8 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> » | 8 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> » |
9 <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a> | 9 <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a> |
10 </h3> | 10 </h3> |
11 | 11 |
12 <div class="forum-block"> | 12 <div class="forum-block"> |
13 <a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> | 13 {% if user.is_authenticated %} |
14 <a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> • | |
15 <form action="{% url forums-catchup slug=forum.slug %}" method="post" style="display:inline"> | |
16 <input type="submit" value="Mark All Topics Read" /> | |
17 </form> | |
18 {% endif %} | |
14 {{ page_nav }} | 19 {{ page_nav }} |
15 <table class="forum-index-table"> | 20 <table class="forum-index-table"> |
16 <thead> | 21 <thead> |
17 <tr> | 22 <tr> |
18 <th class="forum-index_title">Topics</th> | 23 <th class="forum-index_title">Topics</th> |
44 </tr> | 49 </tr> |
45 {% endfor %} | 50 {% endfor %} |
46 </tbody> | 51 </tbody> |
47 </table> | 52 </table> |
48 {{ page_nav }} | 53 {{ page_nav }} |
54 {% if user.is_authenticated %} | |
55 <a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> • | |
56 <form action="{% url forums-catchup slug=forum.slug %}" method="post" style="display:inline"> | |
57 <input type="submit" value="Mark All Topics Read" /> | |
58 </form> | |
59 {% endif %} | |
60 {% if can_moderate %} | |
49 <p><a href="{% url forums-mod_forum slug=forum.slug %}">Moderate this forum</a></p> | 61 <p><a href="{% url forums-mod_forum slug=forum.slug %}">Moderate this forum</a></p> |
62 {% endif %} | |
50 </div> | 63 </div> |
51 {% endblock %} | 64 {% endblock %} |