view gpp/templates/forums/new_post.html @ 193:fa7d82bfb100

Implement #68: add a denormalized count field to weblinks Category model to reduce database queries.
author Brian Neal <bgneal@gmail.com>
date Sat, 03 Apr 2010 02:15:04 +0000
parents 2d299909e074
children 593fb6dbd449
line wrap: on
line source
{% extends 'base.html' %}
{% load forum_tags %}
{% block title %}Forums: New Post{% endblock %}
{% block custom_js %}{{ form.media }}{% endblock %}
{% block content %}
<h2>Forums: New Post</h2>

<h3>
   <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> &raquo;
   <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a> &raquo;
   <a href="{% url forums-topic_index id=topic.id %}">{{ topic.name }}</a>
</h3>

{% if can_post %}
<div class="forum-block">
<a name="forum-reply-form"></a>
{% show_form "New Post" form "Submit Post" 0 MEDIA_URL %}
{% else %}
   {% if topic.locked %}
   <p>This topic is locked.</p>
   {% else %}
   <p>You don't have permission to post to this topic.</p>
   {% endif %}
{% endif %}
</div>
{% endblock %}