comparison gpp/templates/ygroup/thread.html @ 323:0c18dfb1da1c

Fixing #149; adding the ygroup application: an archive of the old Yahoo Group messages.
author Brian Neal <bgneal@gmail.com>
date Sun, 20 Feb 2011 00:31:54 +0000
parents
children cfad8d605cb8
comparison
equal deleted inserted replaced
322:c3d3d7114749 323:0c18dfb1da1c
1 {% extends 'base.html' %}
2 {% load url from future %}
3 {% block title %}Yahoo Group Archives: {{ thread.title }}{% endblock %}
4 {% block custom_css %}
5 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/pagination.css" />
6 {% endblock %}
7 {% block content %}
8 {% if thread.page == 1 %}
9 <h2 class="forum-nav"><a href="{% url 'ygroup-thread_index' %}">Yahoo Group Archives</a> &raquo; </h2>
10 {% else %}
11 <h2 class="forum-nav"><a href="{% url 'ygroup-thread_index' %}">Yahoo Group Archives</a> &raquo;
12 <a href="{% url 'ygroup-thread_index' %}?page={{ thread.page }}">Page {{ thread.page }}</a> &raquo;</h2>
13 {% endif %}
14 <h3 class="forum-nav">{{ thread.title }}
15 <a href="{{ thread.get_absolute_url }}" rel="nofollow">
16 <img src="{{ STATIC_URL }}icons/link.png" alt="permalink" title="permalink" /></a>
17 </h3>
18 {% include "ygroup/pagination.html" %}
19 <dl>
20 {% for post in page_obj.object_list %}
21 <dt><a name="p{{ post.id }}"></a>{{ post.poster }} - {{ post.creation_date|date:"d M Y H:i:s" }}
22 <a href="{{ post.get_absolute_url }}" rel="nofollow">
23 <img src="{{ STATIC_URL }}icons/link.png" alt="permalink" title="permalink" /></a></dt>
24 <dd>{{ post.msg|linebreaks }}</dd>
25 {% endfor %}
26 </dl>
27 {% include "ygroup/pagination.html" %}
28 {% endblock %}