blob: 0a9772976e27835b73e93c191368bef8c0581d15 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
{% extends "aggregator/base.html" %}
{% load posts_extras %}
{% block head %}
<link href="/feeds/posts/" rel="alternate" type="application/rss+xml"
title="All posts" />
{% endblock %}
{% block content %}
<div class="row">
<div class="span3">
<img src="https://secure.gravatar.com/avatar/d3af11dc82b44c4f78517c2036271d5c?s=210" />
<br />
<br />
Feeds:
{% for feed in feeds %}
<a href="{{ feed.base_url }}" class="btn btn-block">
{{ feed.name }}
</a>
{% empty %}
<br />None...
{% endfor %}
</div>
<div class="span9">
{% for post in list.object_list %}
<table>
<tr>
<td style="vertical-align: top">
{% if post.title %}
<h4>
{% endif %}
<a href="{{ post.link }}">
<img class="media-object" src="/static/images/logos/{{ post.icon }}" />
</a>
{% if post.title %}
</h4>
{% endif %}
</td>
<td>
{% if post.title %}
<h4>{{ post.title }}</h4>
{% endif %}
{% autoescape off %}{{ post.content }}{% endautoescape %}
</td>
</tr>
</table>
<br />
{% empty %}
No posts yet...
{% endfor %}
<div class="pagination pagination-centered">
<ul>
{% if list.has_previous %}
<li>
<a href="{% url 'index' cat=category page=list.previous_page_number %}">
Prev
</a>
</li>
{% endif %}
<li><a href="#">{{ list.number }}</a></li>
{% if list.has_next %}
<li>
<a href="{% url 'index' cat=category page=list.next_page_number %}">
Next
</a>
</li>
{% endif %}
</ul>
</div>
</div>
</div>
{% endblock %}
|