Mercurial > public > sg101
comparison gpp/templates/forums/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 | 806399f3b950 |
children | f8f4514b806a |
comparison
equal
deleted
inserted
replaced
112:d1b0b86441c0 | 113:d97ceb95ce02 |
---|---|
17 </tr> | 17 </tr> |
18 </thead> | 18 </thead> |
19 <tbody> | 19 <tbody> |
20 {% for forum in iter.forums %} | 20 {% for forum in iter.forums %} |
21 <tr class="{% cycle 'odd' 'even' %}"> | 21 <tr class="{% cycle 'odd' 'even' %}"> |
22 <td><h4><a href="{{ forum.get_absolute_url }}">{{ forum.name }}</a></h4> | 22 <td> |
23 {% if forum.has_unread %} | |
24 <img src="{{ MEDIA_URL }}icons/new.png" alt="New Posts" title="New Posts" class="forums-topic-icon" /> | |
25 {% endif %} | |
26 <h4><a href="{{ forum.get_absolute_url }}">{{ forum.name }}</a></h4> | |
23 <p>{{ forum.description }}</p></td> | 27 <p>{{ forum.description }}</p></td> |
24 <td class="forum-topics">{{ forum.topic_count }}</td> | 28 <td class="forum-topics">{{ forum.topic_count }}</td> |
25 <td class="forum-posts">{{ forum.post_count }}</td> | 29 <td class="forum-posts">{{ forum.post_count }}</td> |
26 <td class="forum-last_post">{% last_post_info forum.last_post MEDIA_URL %}</td> | 30 <td class="forum-last_post">{% last_post_info forum.last_post MEDIA_URL %}</td> |
27 </tr> | 31 </tr> |