aboutsummaryrefslogtreecommitdiffstats
path: root/templates/aggregator/post_content.html
blob: fa1c654a1d862e86ecfe56edf12e7b42418d83b9 (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
<div class="post {{ post.feed.name|slugify }}">
  <header>
    <h3>
      <a href="/post/{{ post.pk }}/">
        <img src="{{ post.feed.get_favicon_url }}" />
      </a>
      <a href="/post/{{ post.pk }}/">
        {% if post.feed.uses_title %}
          {{ post.title }}
        {% else %}
          {{ post.updated }}
        {% endif %}
      </a>
    </h3>
    <div class="postsubtitle">
      Via
      <a href="{{ post.feed.base_url }}">{{ post.feed.name }}</a>
      (<a href="{{ post.feed.get_profile_url }}">profile</a>,
      <a href="{{ post.remote_url }}">origin</a>)
    </div>
  </header>

  <div class="postcontent">
    {% autoescape off %}
      {% if post.feed.br2nl %}
        {{ post.body|linebreaks }}
      {% else %}
        {{ post.body }}
      {% endif %}
    {% endautoescape %}
  </div>
</div>