annotate gpp/templates/messages/base.html @ 318:c550933ff5b6

Fix a bug where you'd get an error when trying to delete a forum thread (topic does not exist). Apparently when you call topic.delete() the posts would get deleted, but the signal handler for each one would run, and it would try to update the topic's post count or something, but the topic was gone? Reworked the code a bit and explicitly delete the posts first. I also added a sync() call on the parent forum since post counts were not getting adjusted.
author Brian Neal <bgneal@gmail.com>
date Sat, 05 Feb 2011 21:46:52 +0000
parents 88b2b9cb8c1f
children 8df6e9edac22
rev   line source
gremmie@1 1 {% extends 'base.html' %}
bgneal@310 2 {% load url from future %}
gremmie@1 3 {% block custom_css %}
bgneal@312 4 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/tab-nav.css" />
bgneal@312 5 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/messages.css" />
gremmie@1 6 {% endblock %}
gremmie@1 7 {% block content %}
gremmie@1 8 <h2>Your Private Messsages</h2>
gremmie@1 9 <ul class="tab-nav">
gremmie@1 10 <li><a {% block compose-class %}{% endblock %}
bgneal@310 11 href="{% url 'messages-compose' %}">Compose</a></li>
gremmie@1 12 <li><a {% block inbox-class %}{% endblock %}
bgneal@310 13 href="{% url 'messages-inbox' %}">Inbox</a></li>
gremmie@1 14 <li><a {% block outbox-class %}{% endblock %}
bgneal@310 15 href="{% url 'messages-outbox' %}">Outbox</a></li>
gremmie@1 16 <li><a {% block trash-class %}{% endblock %}
bgneal@310 17 href="{% url 'messages-trash' %}">Trash</a></li>
gremmie@1 18 <li><a {% block options-class %}{% endblock %}
bgneal@310 19 href="{% url 'messages-options' %}">Options</a></li>
gremmie@1 20 </ul>
gremmie@1 21 {% block messages_content %}
gremmie@1 22 {% endblock %}
gremmie@1 23 <br />
gremmie@1 24 {% endblock %}