comparison gpp/templates/forums/forum_index.html @ 358:768e3568addf

Fixing #172; add a forums jump box.
author Brian Neal <bgneal@gmail.com>
date Fri, 04 Mar 2011 03:50:07 +0000
parents daa2916f5b34
children 3c48a555298d
comparison
equal deleted inserted replaced
357:8e3f252e4fbb 358:768e3568addf
1 {% extends 'base.html' %} 1 {% extends 'base.html' %}
2 {% load url from future %} 2 {% load url from future %}
3 {% load forum_tags %} 3 {% load forum_tags %}
4 {% block custom_head %} 4 {% block custom_head %}
5 {% if feed %} 5 {% if feed %}
6 <link rel="alternate" type="application/rss+xml" title="{{ feed.name }}" href="{{ feed.feed }}" /> 6 <link rel="alternate" type="application/rss+xml" title="{{ feed.name }}" href="{{ feed.feed }}" />
7 {% endif %} 7 {% endif %}
8 {% include "forums/jump_box.js" %}
8 {% endblock %} 9 {% endblock %}
9 {% block title %}Forums: {{ forum.name }}{% endblock %} 10 {% block title %}Forums: {{ forum.name }}{% endblock %}
10 {% block content %} 11 {% block content %}
11 {% forum_navigation forum %} 12 {% forum_navigation forum %}
12 13
53 </tr> 54 </tr>
54 {% endfor %} 55 {% endfor %}
55 </tbody> 56 </tbody>
56 </table> 57 </table>
57 {{ page_nav }} 58 {{ page_nav }}
59 {% include 'forums/jump_box.html' %}
58 {% if user.is_authenticated %} 60 {% if user.is_authenticated %}
59 <a href="{% url 'forums-new_topic' slug=forum.slug %}">New Topic</a> &bull; 61 <a href="{% url 'forums-new_topic' slug=forum.slug %}">New Topic</a> &bull;
60 <form action="{% url 'forums-catchup' slug=forum.slug %}" method="post" style="display:inline">{% csrf_token %} 62 <form action="{% url 'forums-catchup' slug=forum.slug %}" method="post" style="display:inline">{% csrf_token %}
61 <input type="submit" value="Mark All Topics Read" /> 63 <input type="submit" value="Mark All Topics Read" />
62 </form> 64 </form>