annotate gpp/templates/ygroup/thread_list.html @ 507:8631d32e6b16

Some users are still having problems with the pop-up login. I think they are actually getting 403s because of the CSRF protection. So I have modified the base template to always have a javascript variable called csrf_token available when they aren't logged in. The ajax_login.js script was then modified to send this value with the ajax post. Fingers crossed.
author Brian Neal <bgneal@gmail.com>
date Sun, 04 Dec 2011 03:05:21 +0000
parents 0c18dfb1da1c
children
rev   line source
bgneal@323 1 {% extends 'base.html' %}
bgneal@323 2 {% load url from future %}
bgneal@323 3 {% block title %}Yahoo Group Archives{% endblock %}
bgneal@323 4 {% block custom_css %}
bgneal@323 5 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/pagination.css" />
bgneal@323 6 {% endblock %}
bgneal@323 7 {% block content %}
bgneal@323 8 <h2>Yahoo Group Archives &raquo; Page {{ page_obj.number }}</h2>
bgneal@323 9 <p>
bgneal@323 10 SurfGuitar101.com began as a Yahoo Group on October 31, 2001. It ran until August, 2007 when this site officially replaced it. On these pages you'll find the archived messages of our original group. You can also search through these messages via our <a href="{% url 'haystack_search' %}">search page</a>.
bgneal@323 11 </p>
bgneal@323 12 {% include "ygroup/pagination.html" %}
bgneal@323 13 <table>
bgneal@323 14 <tr><th>Title</th><th>Author</th><th>Posts</th><th>Date</th></tr>
bgneal@323 15 {% for thread in page_obj.object_list %}
bgneal@323 16 <tr>
bgneal@323 17 <td><a href="{{ thread.get_absolute_url }}">{{ thread.title }}</a></td>
bgneal@323 18 <td>{{ thread.poster }}</td>
bgneal@323 19 <td>{{ thread.post_count }}</td>
bgneal@323 20 <td>{{ thread.creation_date|date:"d M Y" }}</td>
bgneal@323 21 </tr>
bgneal@323 22 {% endfor %}
bgneal@323 23 </table>
bgneal@323 24 {% include "ygroup/pagination.html" %}
bgneal@323 25 {% endblock %}