blob: 2a5b8a1935406a6417c3efca45827e87c0496b71 (
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
|
{% extends "aggregator/base.html" %}
{% block menu %}
<div id="feeds">
{% for feed in feeds %}
<a href="{{ feed.get_profile_url }}">
<img src="{{ feed.get_favicon_url }}">
{{ feed.name }}
</a>
{% endfor %}
</div>
{% endblock %}
{% block content %}
{% regroup list.object_list by updated.date as grouped_list %}
{% for group in grouped_list %}
<h2>{{ group.grouper }}</h2>
{% 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="/{{ list.previous_page_number }}/" id="previous">previous</a>
</div>
{% endif %}
{% if list.has_next %}
<div class="nav-next">
<a href="/{{ list.next_page_number }}/" id="next">next</a>
</div>
{% endif %}
<div id="current">
{{ list.number }} / {{ list.paginator.num_pages }}
</div>
</div>
{% endblock %}
|