Mercurial > public > sg101
comparison gpp/templates/forums/mod_forum.html @ 112:d1b0b86441c0
Forums: added a sync() function on the forum model. Created javascript for the moderate forum function to drive the master topic select checkbox.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 30 Sep 2009 00:42:13 +0000 |
parents | e5faf9f0c11a |
children | f8f4514b806a |
comparison
equal
deleted
inserted
replaced
111:e5faf9f0c11a | 112:d1b0b86441c0 |
---|---|
1 {% extends 'base.html' %} | 1 {% extends 'base.html' %} |
2 {% load forum_tags %} | 2 {% load forum_tags %} |
3 {% block title %}Moderate Forum: {{ forum.name }}{% endblock %} | 3 {% block title %}Moderate Forum: {{ forum.name }}{% endblock %} |
4 {% block custom_js %} | |
5 <script type="text/javascript" src="{{ MEDIA_URL }}js/forums_mod.js"></script> | |
6 {% endblock %} | |
4 {% block content %} | 7 {% block content %} |
5 <h2>Moderate Forum: {{ forum.name }}</h2> | 8 <h2>Moderate Forum: {{ forum.name }}</h2> |
6 | 9 |
7 <h3> | 10 <h3> |
8 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> » | 11 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> » |
32 <td class="forum-index_replies">{{ topic.reply_count }}</td> | 35 <td class="forum-index_replies">{{ topic.reply_count }}</td> |
33 <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> | 36 <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> |
34 <td class="forum-index_last_post"> | 37 <td class="forum-index_last_post"> |
35 {% last_post_info topic.last_post MEDIA_URL %} | 38 {% last_post_info topic.last_post MEDIA_URL %} |
36 </td> | 39 </td> |
37 <td class="forum-index_select"><input type="checkbox" name="topic_ids" value="{{ topic.id }}" /></td> | 40 <td class="forum-index_select"><input type="checkbox" name="topic_ids" value="{{ topic.id }}" class="forums-topic_check" /></td> |
38 </tr> | 41 </tr> |
39 {% empty %} | 42 {% empty %} |
40 <tr> | 43 <tr> |
41 <td colspan="5"> | 44 <td colspan="5"> |
42 <i>No topics available.</i> | 45 <i>No topics available.</i> |