comparison gpp/templates/news/archive_index.html @ 310:daa2916f5b34

Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author Brian Neal <bgneal@gmail.com>
date Thu, 20 Jan 2011 04:03:48 +0000
parents 1246a4f1ab4f
children
comparison
equal deleted inserted replaced
309:8a0bae48b6ca 310:daa2916f5b34
1 {% extends 'news/base.html' %} 1 {% extends 'news/base.html' %}
2 {% load url from future %}
2 {% block title %}News Archive{% endblock %} 3 {% block title %}News Archive{% endblock %}
3 {% block archive-class %}class="active"{% endblock %} 4 {% block archive-class %}class="active"{% endblock %}
4 {% block news_content %} 5 {% block news_content %}
5 <h3>News Archive</h3> 6 <h3>News Archive</h3>
6 <p> 7 <p>
8 </p> 9 </p>
9 10
10 {% if dates %} 11 {% if dates %}
11 <ul> 12 <ul>
12 {% for date in dates %} 13 {% for date in dates %}
13 <li><a href="{% url news-archive_page year=date.year month=date.month %}"> 14 <li><a href="{% url 'news-archive_page' year=date.year month=date.month %}">
14 {{ date|date:"F, Y" }}</a></li> 15 {{ date|date:"F, Y" }}</a></li>
15 {% endfor %} 16 {% endfor %}
16 </ul> 17 </ul>
17 {% else %} 18 {% else %}
18 <p>No archives at this time.</p> 19 <p>No archives at this time.</p>