annotate gpp/templates/ygroup/thread.html @ 339:b871892264f2

Adding the sg101 IRC bot code to SVN. This code is pretty rough and needs love, but it gets the job done (one of my first Python apps). This fixes #150.
author Brian Neal <bgneal@gmail.com>
date Sat, 26 Feb 2011 21:27:49 +0000
parents 0c18dfb1da1c
children cfad8d605cb8
rev   line source
bgneal@323 1 {% extends 'base.html' %}
bgneal@323 2 {% load url from future %}
bgneal@323 3 {% block title %}Yahoo Group Archives: {{ thread.title }}{% 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 {% if thread.page == 1 %}
bgneal@323 9 <h2 class="forum-nav"><a href="{% url 'ygroup-thread_index' %}">Yahoo Group Archives</a> &raquo; </h2>
bgneal@323 10 {% else %}
bgneal@323 11 <h2 class="forum-nav"><a href="{% url 'ygroup-thread_index' %}">Yahoo Group Archives</a> &raquo;
bgneal@323 12 <a href="{% url 'ygroup-thread_index' %}?page={{ thread.page }}">Page {{ thread.page }}</a> &raquo;</h2>
bgneal@323 13 {% endif %}
bgneal@323 14 <h3 class="forum-nav">{{ thread.title }}
bgneal@323 15 <a href="{{ thread.get_absolute_url }}" rel="nofollow">
bgneal@323 16 <img src="{{ STATIC_URL }}icons/link.png" alt="permalink" title="permalink" /></a>
bgneal@323 17 </h3>
bgneal@323 18 {% include "ygroup/pagination.html" %}
bgneal@323 19 <dl>
bgneal@323 20 {% for post in page_obj.object_list %}
bgneal@323 21 <dt><a name="p{{ post.id }}"></a>{{ post.poster }} - {{ post.creation_date|date:"d M Y H:i:s" }}
bgneal@323 22 <a href="{{ post.get_absolute_url }}" rel="nofollow">
bgneal@323 23 <img src="{{ STATIC_URL }}icons/link.png" alt="permalink" title="permalink" /></a></dt>
bgneal@323 24 <dd>{{ post.msg|linebreaks }}</dd>
bgneal@323 25 {% endfor %}
bgneal@323 26 </dl>
bgneal@323 27 {% include "ygroup/pagination.html" %}
bgneal@323 28 {% endblock %}