aboutsummaryrefslogtreecommitdiffstats
path: root/templates/aggregator/posts.html
blob: 94b96264164ddbb19e713b8af881d4b7815b9c14 (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
<html>
  <head>
    <title>ryuslash.org</title>
  </head>
  <body>

    {% for post in list.object_list %}
      <p>
        <div>
          <a href="{{ post.remote_url }}">
            <img src="{{ post.feed.get_favicon_url }}" />
            {{ post.updated }}
          </a>
        </div>
        {% if post.feed.uses_title %}
          <div>{{ post.title }}</div>
        {% endif %}

        {% autoescape off %}
          {% if post.feed.br2nl %}
            {{ post.body|linebreaks }}
          {% else %}
            {{ post.body }}
          {% endif %}
        {% endautoescape %}
        <div>
          Through:
          <a href="{{ post.feed.get_profile_url }}">
            {{ post.feed.name|lower }}
          </a>
        </div>
      </p>
    {% endfor %}

    <div class="pagination">
      <span class="step-links">
        {% if list.has_previous %}
          <a href="/{{ list.previous_page_number }}/">previous</a>
        {% endif %}

        <span class="current">
          Page {{ list.number }} of {{ list.paginator.num_pages }}.
        </span>

        {% if list.has_next %}
          <a href="/{{ list.next_page_number }}/">next</a>
        {% endif %}
      </span>
    </div>
  </body>
</html>