include week in archive view
This commit is contained in:
parent
6efa5b7900
commit
5c4cc4e7b2
2 changed files with 9 additions and 2 deletions
|
|
@ -1,6 +1,9 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
{% for item in items %}
|
||||
{% ifchanged item.week %}
|
||||
<h2>{{ item.year }} week {{ item.week }}</h2>
|
||||
{% endifchanged %}
|
||||
{% include "listitem.html" with item=item %}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue