aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates/feed.html
blob: 9825e16bc43fbf57cfc288955d601382f6b8a247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{% extends "layout.html" %}
{% block content %}
<div class="container">
    <div class="jumbotron">
        <h2>{{ feed.title }}</h2>
        <a href="/delete_feed/{{ feed.oid }}"><i class="glyphicon glyphicon-remove" title="Delete this feed"></i></a>
        <a href="/edit_feed/{{ feed.oid }}"><i class="glyphicon glyphicon-edit" title="Edit this feed"></i></a>
        <p>This feed contains {{ feed.articles|count }} <a href="/articles/{{ feed.oid }}">articles</a>.</p>
        <p>Address of the feed: <a href="{{ feed.link }}">{{ feed.link }}</a>.</p>
        <p>Address of the site: <a href="{{ feed.site_link }}">{{ feed.site_link }}</a>.</p>
        {% if feed.articles|count != 0 %}
            <br />
            <p>The last article was posted {{ elapsed.days }} day(s) ago.<br />
            Daily average: {{ average }}, between the {{ first_post_date.strftime('%Y-%m-%d') }} and the {{ end_post_date.strftime('%Y-%m-%d') }}.</p>
            <br />
            <h3>Tag cloud</h3>
            <div>{{ tag_cloud|safe }}</div>
        {% endif %}
    </div>
</div><!-- /.container -->
{% endblock %}
bgstack15