diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-03-28 10:35:05 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-03-28 10:35:05 +0100 |
commit | d88d39660816f412f0f1f81841c327efe4cd3e30 (patch) | |
tree | fe58180b74c188d809f59370e28320dac645ffc5 /source/static | |
parent | Minor fix to the /inactives view when a feed has no articles. (diff) | |
download | newspipe-d88d39660816f412f0f1f81841c327efe4cd3e30.tar.gz newspipe-d88d39660816f412f0f1f81841c327efe4cd3e30.tar.bz2 newspipe-d88d39660816f412f0f1f81841c327efe4cd3e30.zip |
Added the case when the feed is empty for the /articles view.
Diffstat (limited to 'source/static')
-rw-r--r-- | source/static/templates/articles.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/static/templates/articles.html b/source/static/templates/articles.html index cbba2508..4637822f 100644 --- a/source/static/templates/articles.html +++ b/source/static/templates/articles.html @@ -14,7 +14,11 @@ import utils <div class="left inner"> <h1>Articles of the feed <i><a href="/feed/${feed['feed_id']}">${feed['feed_title']}</a></i></h1> - <br /> + %if articles.count() == 0: + <p>No articles yet.</p> + %else: + <br /> + %endif %for article in articles: <% if article["article_readed"] == False: @@ -36,4 +40,4 @@ import utils ${article["article_date"].strftime('%Y-%m-%d %H:%M')} - <a class="tooltip" href="/article/${feed['feed_id']}:${article['article_id']}" rel="noreferrer" target="_blank">${not_read_begin}${article["article_title"][:150]}${not_read_end}<span class="classic">${description}</span></a> <br /> %endfor - <h4><a href="/">All feeds</a></h4>
\ No newline at end of file + <h4><a href="/">All feeds</a></h4> |