aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates/feed.html
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/templates/feed.html')
-rw-r--r--pyaggr3g470r/templates/feed.html14
1 files changed, 8 insertions, 6 deletions
diff --git a/pyaggr3g470r/templates/feed.html b/pyaggr3g470r/templates/feed.html
index b0f06eb6..9825e16b 100644
--- a/pyaggr3g470r/templates/feed.html
+++ b/pyaggr3g470r/templates/feed.html
@@ -8,12 +8,14 @@
<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>
- <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>
+ {% 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