aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-07 10:12:06 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-07 10:12:06 +0100
commit5827443a2fd70bc64055b84fb1c64e92afd4ba21 (patch)
treeaec871182284d585e1d29385d39fa4b54ca0e7a1 /source
parentTest of automatic feed add with Python 3: OK ;-) (diff)
downloadnewspipe-5827443a2fd70bc64055b84fb1c64e92afd4ba21.tar.gz
newspipe-5827443a2fd70bc64055b84fb1c64e92afd4ba21.tar.bz2
newspipe-5827443a2fd70bc64055b84fb1c64e92afd4ba21.zip
The /feed page now displays the address of the feed.
Diffstat (limited to 'source')
-rw-r--r--source/templates/feed.html13
1 files changed, 8 insertions, 5 deletions
diff --git a/source/templates/feed.html b/source/templates/feed.html
index cc3f6fb7..ebe4b2fa 100644
--- a/source/templates/feed.html
+++ b/source/templates/feed.html
@@ -5,7 +5,11 @@ import utils
%>
<div class="left inner">
<p>The feed <b>${feed['feed_title']}</b> contains <b>${format(nb_articles_feed, ',d')}</b> articles.
- Representing ${round((nb_articles_feed / nb_articles_total) * 100, 4)} percent of the total (${format(nb_articles_total, ',d')}).</p>
+ Representing ${round((nb_articles_feed / nb_articles_total) * 100, 4)} percent of the total (${format(nb_articles_total, ',d')} articles).
+ <br />
+ Address of the feed: <a href="${feed['feed_link']}">${feed['feed_link']}</a>.
+ <br />
+ Address of the site: <a href="${feed['site_link']}">${feed['site_link']}</a>.</p>
%if articles:
<p>${(nb_unread_articles_feed == 0 and ["All articles are read"] or [str(nb_unread_articles_feed) + " unread article" + (nb_unread_articles_feed == 1 and [""] or ["s"])[0]])[0]}.</p>
@@ -17,9 +21,8 @@ import utils
%endif
%if articles != []:
- <p>The last article was posted ${elapsed.days} day(s) ago.</p>
- <p>Daily average: ${average}, between the ${first_post_date.strftime('%Y-%m-%d')} and the ${end_post_date.strftime('%Y-%m-%d')}.</p>
-
+ <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 />
<h1>Recent articles</h1>
@@ -121,4 +124,4 @@ import utils
<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
+ %endif
bgstack15