annotate gpp/templates/forums/new_topic.html @ 145:71cb4208dc98

Tweak to #30, admin dashboard. Because of a bug in Django (9568), my dashboard appears on the login page. To get around this, pass in the user to the templatetag, so it can do a 'if user.is_staff' check. Also tweaked the HTML and CSS to show non-zero pending items in red. Shortened the pending item titles for readability.
author Brian Neal <bgneal@gmail.com>
date Wed, 09 Dec 2009 00:03:10 +0000
parents 2d299909e074
children 593fb6dbd449
rev   line source
bgneal@83 1 {% extends 'base.html' %}
bgneal@127 2 {% load forum_tags %}
bgneal@83 3 {% block title %}Forums: New Topic{% endblock %}
bgneal@95 4 {% block custom_js %}{{ form.media }}{% endblock %}
bgneal@83 5 {% block content %}
bgneal@83 6 <h2>{{ forum.name }} - New Topic</h2>
bgneal@83 7
bgneal@83 8 <h3>
bgneal@83 9 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> &raquo;
bgneal@83 10 <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a>
bgneal@83 11 </h3>
bgneal@83 12
bgneal@127 13 {% show_form "New Topic" form "Submit" 0 MEDIA_URL %}
bgneal@83 14 {% endblock %}