annotate gpp/templates/ygroup/thread_list.html @ 505:a5d11471d031

Refactor the logic in the rate limiter decorator. Check to see if the request was ajax, as the ajax view always returns 200. Have to decode the JSON response to see if an error occurred or not.
author Brian Neal <bgneal@gmail.com>
date Sat, 03 Dec 2011 19:13:38 +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 %}