annotate gpp/templates/forums/new_post.html @ 169:7071b196ddd5

Implement #54; add a forum query to display a user's posts.
author Brian Neal <bgneal@gmail.com>
date Sun, 31 Jan 2010 04:52:08 +0000
parents 2d299909e074
children 593fb6dbd449
rev   line source
bgneal@108 1 {% extends 'base.html' %}
bgneal@127 2 {% load forum_tags %}
bgneal@108 3 {% block title %}Forums: New Post{% endblock %}
bgneal@108 4 {% block custom_js %}{{ form.media }}{% endblock %}
bgneal@108 5 {% block content %}
bgneal@108 6 <h2>Forums: New Post</h2>
bgneal@108 7
bgneal@108 8 <h3>
bgneal@108 9 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> &raquo;
bgneal@108 10 <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a> &raquo;
bgneal@108 11 <a href="{% url forums-topic_index id=topic.id %}">{{ topic.name }}</a>
bgneal@108 12 </h3>
bgneal@108 13
bgneal@108 14 {% if can_post %}
bgneal@108 15 <div class="forum-block">
bgneal@108 16 <a name="forum-reply-form"></a>
bgneal@127 17 {% show_form "New Post" form "Submit Post" 0 MEDIA_URL %}
bgneal@108 18 {% else %}
bgneal@108 19 {% if topic.locked %}
bgneal@108 20 <p>This topic is locked.</p>
bgneal@108 21 {% else %}
bgneal@108 22 <p>You don't have permission to post to this topic.</p>
bgneal@108 23 {% endif %}
bgneal@108 24 {% endif %}
bgneal@127 25 </div>
bgneal@108 26 {% endblock %}