comparison gpp/templates/forums/forum_index.html @ 120:f8f4514b806a

Added a 24-hour time preference flag in the user profile. Added forum template tags for showing forum dates/times adjusted for the user's time zone.
author Brian Neal <bgneal@gmail.com>
date Sun, 25 Oct 2009 21:55:28 +0000
parents 535d02d1c017
children 445e1466a98d
comparison
equal deleted inserted replaced
119:b8f1dcc9fae4 120:f8f4514b806a
38 <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td> 38 <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td>
39 <td class="forum-index_replies">{{ topic.reply_count }}</td> 39 <td class="forum-index_replies">{{ topic.reply_count }}</td>
40 <td class="forum-index_author"><a href="{% url bio-view_profile username=topic.user.username %}" title="View profile for {{ topic.user.username }}">{{ topic.user.username }}</a></td> 40 <td class="forum-index_author"><a href="{% url bio-view_profile username=topic.user.username %}" title="View profile for {{ topic.user.username }}">{{ topic.user.username }}</a></td>
41 <td class="forum-index_views">{{ topic.view_count }}</td> 41 <td class="forum-index_views">{{ topic.view_count }}</td>
42 <td class="forum-index_last_post"> 42 <td class="forum-index_last_post">
43 {% last_post_info topic.last_post MEDIA_URL %} 43 {% last_post_info topic.last_post %}
44 </td> 44 </td>
45 </tr> 45 </tr>
46 {% empty %} 46 {% empty %}
47 <tr> 47 <tr>
48 <td colspan="5"> 48 <td colspan="5">
60 </form> 60 </form>
61 {% endif %} 61 {% endif %}
62 {% if can_moderate %} 62 {% if can_moderate %}
63 <p><a href="{% url forums-mod_forum slug=forum.slug %}">Moderate this forum</a></p> 63 <p><a href="{% url forums-mod_forum slug=forum.slug %}">Moderate this forum</a></p>
64 {% endif %} 64 {% endif %}
65 {% current_forum_time user %}
65 </div> 66 </div>
66 {% endblock %} 67 {% endblock %}