blob: 0763ed239f22ad439995f6e075c54aa94caa9c78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{% extends "aggregator/base.html" %}
{% block head %}
<link href="/feeds/posts/" rel="alternate" type="application/rss+xml"
title="All posts" />
{% endblock %}
{% block content %}
{% regroup list.object_list by updated.date as grouped_list %}
{% for group in grouped_list %}
<header>
<h2>
<time datetime="{{ group.grouper|date:"Y-m-d" }}">
{{ group.grouper }}
</time>
</h2>
</header>
{% for post in group.list %}
{% include "aggregator/post_content.html" %}
{% endfor %}
{% endfor %}
<div id="pager">
{% if list.has_previous %}
<div class="nav-prev">
<a href="/{{ category }}/{{ list.previous_page_number }}/"
id="previous">previous</a>
</div>
{% endif %}
{% if list.has_next %}
<div class="nav-next">
<a href="/{{ category }}/{{ list.next_page_number }}/"
id="next">next</a>
</div>
{% endif %}
<div id="current">
{{ list.number }} / {{ list.paginator.num_pages }}
</div>
</div>
{% endblock %}
|