aboutsummaryrefslogtreecommitdiff
path: root/source/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2012-12-13 23:01:35 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2012-12-13 23:01:35 +0100
commitf2c092863e655d54f9fc25761850dd77edf3dc9b (patch)
treec85be628b5fe628b897f9dc5a43a3f9d27d21fbf /source/templates
parentTemplate for the /feed page. (diff)
downloadnewspipe-f2c092863e655d54f9fc25761850dd77edf3dc9b.tar.gz
newspipe-f2c092863e655d54f9fc25761850dd77edf3dc9b.tar.bz2
newspipe-f2c092863e655d54f9fc25761850dd77edf3dc9b.zip
Test if list of articles is not empty.
Diffstat (limited to 'source/templates')
-rw-r--r--source/templates/feed.html19
1 files changed, 11 insertions, 8 deletions
diff --git a/source/templates/feed.html b/source/templates/feed.html
index 5fc5d170..c5ca831c 100644
--- a/source/templates/feed.html
+++ b/source/templates/feed.html
@@ -90,6 +90,8 @@ Representing ${(round(float(nb_articles_feed) / nb_articles_total, 4)) * 100} pe
%endfor
${html}
%endif
+%else:
+ <p>No articles yet.</p>
%endif
@@ -112,11 +114,12 @@ Representing ${(round(float(nb_articles_feed) / nb_articles_total, 4)) * 100} pe
</form>
-
-</br />
-<h1>Tag cloud</h1>
-<form method=get action="/feed/${feed['feed_id']}">
- Minimum size of a word:
- <input type="number" name="word_size" value="${word_size}" min="2" max="15" step="1" size="2">
-</form>
-<div style="width: 35%; overflow:hidden; text-align: justify">${tag_cloud}</div> \ No newline at end of file
+%if articles != []:
+ </br />
+ <h1>Tag cloud</h1>
+ <form method=get action="/feed/${feed['feed_id']}">
+ Minimum size of a word:
+ <input type="number" name="word_size" value="${word_size}" min="2" max="15" step="1" size="2">
+ </form>
+ <div style="width: 35%; overflow:hidden; text-align: justify">${tag_cloud}</div>
+%endif \ No newline at end of file
bgstack15