annotate gpp/templates/forums/mod_split_topic.html @ 170:6f14970b103a

Implement #52 Forums RSS feeds.
author Brian Neal <bgneal@gmail.com>
date Thu, 11 Feb 2010 02:29:03 +0000
parents b8f1dcc9fae4
children 6a5549c2efb5
rev   line source
bgneal@119 1 {% extends 'base.html' %}
bgneal@119 2 {% block title %}Forums: Split Topic{% endblock %}
bgneal@119 3 {% block custom_js %}{{ form.media }}{% endblock %}
bgneal@119 4 {% block content %}
bgneal@119 5 <h2>Forums: Split Topic {{ topic.name }}</h2>
bgneal@119 6
bgneal@119 7 <h3>
bgneal@119 8 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> &raquo;
bgneal@119 9 <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a> &raquo;
bgneal@119 10 <a href="{% url forums-topic_index id=topic.id %}">{{ topic.name }}</a>
bgneal@119 11 </h3>
bgneal@119 12
bgneal@119 13 <div class="forum-block">
bgneal@119 14 <p>
bgneal@119 15 Using the form below, you can split a topic into two. You can either specify which posts get
bgneal@119 16 split to the new topic ("Split Selected Posts"), or by selecting a post such that all posts
bgneal@119 17 at or below the selection get split ("Split At Selected Post").
bgneal@119 18 <p>
bgneal@119 19 <form action="." method="post">
bgneal@119 20 <table>
bgneal@119 21 {{ form.as_table }}
bgneal@119 22 <tr><td>&nbsp;</td><td>
bgneal@119 23 <input type="submit" name="split-selected" value="Split Selected Posts" />
bgneal@119 24 <input type="submit" name="split-at" value="Split At Selected Post" /></td></tr>
bgneal@119 25 </table>
bgneal@119 26
bgneal@119 27 <table class="forum-topic" id="forum-topic">
bgneal@119 28 {% for post in posts %}
bgneal@119 29 <tr class="forum-post {% cycle 'odd' 'even' %}" id="post-{{ post.id }}">
bgneal@119 30 <td class="forum-post-author">{{ post.user.username }}</td>
bgneal@119 31 <td class="forum-post-body">
bgneal@119 32 <div class="forum-post-info quiet">
bgneal@119 33 <a href="{{ post.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Link" title="Link to this post" /></a>
bgneal@119 34 Posted on {{ post.creation_date|date:"M d, Y H:i" }} from IP: {{ post.user_ip }}
bgneal@119 35 </div>
bgneal@119 36 <div class="forum-post-body-split">
bgneal@119 37 {{ post.html|safe }}
bgneal@119 38 </div>
bgneal@119 39 </td>
bgneal@119 40 <td class="forum-post-split-check">
bgneal@119 41 {% if not forloop.first %}
bgneal@119 42 <input type="checkbox" name="post_ids" value="{{ post.id }}" />
bgneal@119 43 {% endif %}
bgneal@119 44 </td>
bgneal@119 45 </tr>
bgneal@119 46 {% endfor %}
bgneal@119 47 </table>
bgneal@119 48 </form>
bgneal@119 49 </div>
bgneal@119 50 {% endblock %}