Mercurial > public > sg101
annotate gpp/templates/ygroup/thread.html @ 393:9af6bd45c1f8
Another try at #191 after getting some good advice in a django-users thread.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 24 Mar 2011 00:15:34 +0000 |
parents | cfad8d605cb8 |
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: {{ 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@343 | 8 <a name="top" class="intra"></a> |
bgneal@323 | 9 {% if thread.page == 1 %} |
bgneal@323 | 10 <h2 class="forum-nav"><a href="{% url 'ygroup-thread_index' %}">Yahoo Group Archives</a> » </h2> |
bgneal@323 | 11 {% else %} |
bgneal@323 | 12 <h2 class="forum-nav"><a href="{% url 'ygroup-thread_index' %}">Yahoo Group Archives</a> » |
bgneal@323 | 13 <a href="{% url 'ygroup-thread_index' %}?page={{ thread.page }}">Page {{ thread.page }}</a> »</h2> |
bgneal@323 | 14 {% endif %} |
bgneal@323 | 15 <h3 class="forum-nav">{{ thread.title }} |
bgneal@323 | 16 <a href="{{ thread.get_absolute_url }}" rel="nofollow"> |
bgneal@323 | 17 <img src="{{ STATIC_URL }}icons/link.png" alt="permalink" title="permalink" /></a> |
bgneal@323 | 18 </h3> |
bgneal@323 | 19 {% include "ygroup/pagination.html" %} |
bgneal@323 | 20 <dl> |
bgneal@323 | 21 {% for post in page_obj.object_list %} |
bgneal@323 | 22 <dt><a name="p{{ post.id }}"></a>{{ post.poster }} - {{ post.creation_date|date:"d M Y H:i:s" }} |
bgneal@323 | 23 <a href="{{ post.get_absolute_url }}" rel="nofollow"> |
bgneal@323 | 24 <img src="{{ STATIC_URL }}icons/link.png" alt="permalink" title="permalink" /></a></dt> |
bgneal@343 | 25 <dd> |
bgneal@343 | 26 {{ post.msg|linebreaks }} |
bgneal@343 | 27 <p><a href="#top" class="quiet" title="Goto top of page">Top</a></p> |
bgneal@343 | 28 </dd> |
bgneal@323 | 29 {% endfor %} |
bgneal@323 | 30 </dl> |
bgneal@323 | 31 {% include "ygroup/pagination.html" %} |
bgneal@323 | 32 {% endblock %} |