Skip to content

Commit

Permalink
The Archive year template should make use of the date_list context va…
Browse files Browse the repository at this point in the history
…r, and not object_list
  • Loading branch information
Andre Engelbrecht committed Mar 26, 2012
1 parent c27dc1f commit f86528e
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions src/videostream/templates/videostream/video_archive_year.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,9 @@
<h1>Videos published in, {{ year }}</h1>

<ul>
{% for video in object_list %}
<li>
<h2><a href="{{ video.get_absolute_url }}">{{ video.title }}</a></h2>
<p>
{% if video.author.get_full_name %}
{{ video.author.get_full_name }}
{% else %}
{{ video.author }}
{% endif %}
- {{ video.publish_date|date:"d M Y" }}
</p>
<p>{{ video.description }}</p>
<p><a href="{{ video.get_absolute_url }}">View now...</a></p>
</li>
{% for month in date_list %}
<li><a href="{% url videostream_video_month month|date:"Y" month|date:"b" %}">
{{ month|date:"F" }}</a></li>
{% endfor %}
</ul>

0 comments on commit f86528e

Please sign in to comment.