aboutsummaryrefslogtreecommitdiff
path: root/source/static/templates/articles.html
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-03-28 10:35:05 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-03-28 10:35:05 +0100
commitd88d39660816f412f0f1f81841c327efe4cd3e30 (patch)
treefe58180b74c188d809f59370e28320dac645ffc5 /source/static/templates/articles.html
parentMinor fix to the /inactives view when a feed has no articles. (diff)
downloadnewspipe-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/templates/articles.html')
-rw-r--r--source/static/templates/articles.html8
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>
bgstack15