annotate gpp/templates/forums/new_post.html @ 114:535d02d1c017

Forums: Implemented unread status for topics and posts.
author Brian Neal <bgneal@gmail.com>
date Sun, 11 Oct 2009 20:27:07 +0000
parents 80ab249d1adc
children 3ae999b0c53b
rev   line source
bgneal@108 1 {% extends 'base.html' %}
bgneal@108 2 {% block title %}Forums: New Post{% endblock %}
bgneal@108 3 {% block custom_js %}{{ form.media }}{% endblock %}
bgneal@108 4 {% block content %}
bgneal@108 5 <h2>Forums: New Post</h2>
bgneal@108 6
bgneal@108 7 <h3>
bgneal@108 8 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> &raquo;
bgneal@108 9 <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a> &raquo;
bgneal@108 10 <a href="{% url forums-topic_index id=topic.id %}">{{ topic.name }}</a>
bgneal@108 11 </h3>
bgneal@108 12
bgneal@108 13 {% if can_post %}
bgneal@108 14 <div class="forum-block">
bgneal@108 15 <a name="forum-reply-form"></a>
bgneal@108 16 <form action="." method="post" id="forums-reply">
bgneal@108 17 <fieldset>
bgneal@108 18 <legend>New Post</legend>
bgneal@108 19 {{ form.as_p }}
bgneal@108 20 <input type="submit" value="Submit Post" id="forums-new-post" />
bgneal@108 21 </fieldset>
bgneal@108 22 </form>
bgneal@108 23 </div>
bgneal@108 24 {% else %}
bgneal@108 25 {% if topic.locked %}
bgneal@108 26 <p>This topic is locked.</p>
bgneal@108 27 {% else %}
bgneal@108 28 <p>You don't have permission to post to this topic.</p>
bgneal@108 29 {% endif %}
bgneal@108 30 {% endif %}
bgneal@108 31 {% endblock %}