aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-10-09 08:24:10 +0200
committercedricbonhomme <devnull@localhost>2012-10-09 08:24:10 +0200
commit3efdfbaf53b5540cf81e6900aed07abf4fed64b7 (patch)
treedf15728126601ed64e5fda991d5872584e6bb99e /source
parentAdded a link to the feed description page in the 'articles' page. (diff)
downloadnewspipe-3efdfbaf53b5540cf81e6900aed07abf4fed64b7.tar.gz
newspipe-3efdfbaf53b5540cf81e6900aed07abf4fed64b7.tar.bz2
newspipe-3efdfbaf53b5540cf81e6900aed07abf4fed64b7.zip
Improved the display of the 'feed' page.
Diffstat (limited to 'source')
-rwxr-xr-xsource/pyAggr3g470r.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index 6934c48d..ae623214 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -624,8 +624,8 @@ class Root:
"""<a class="tooltip" href="/article/%s:%s" rel="noreferrer" target="_blank">%s%s%s<span class="classic">%s</span></a>""" % \
(feed["feed_id"], article["article_id"], not_read_begin, \
article_title, not_read_end, description) + like + "<br />\n"
+ html += """<a href="/articles/%s">All articles</a>&nbsp;&nbsp;&nbsp;\n""" % (feed["feed_id"],)
html += "<br />\n"
- html += """<a href="/articles/%s">All articles</a>&nbsp;&nbsp;&nbsp;""" % (feed["feed_id"],)
if self.mongo.nb_favorites(feed_id) != 0:
@@ -669,12 +669,11 @@ class Root:
dic = {}
top_words = utils.top_words(articles = self.mongo.get_articles_from_collection(feed_id), n=50, size=int(word_size))
- html += "</br /><h1>Tag cloud</h1>\n<br />\n"
+ html += "</br />\n<h1>Tag cloud</h1>\n"
# Tags cloud
- html += 'Minimum size of a word:'
- html += """<form method=get action="/feed/%s">""" % (feed["feed_id"],)
- html += """<input type="number" name="word_size" value="%s" min="2" max="15" step="1" size="2">""" % (word_size,)
- html += '<input type="submit" value="OK"></form>\n'
+ html += """<form method=get action="/feed/%s">\n""" % (feed["feed_id"],)
+ html += "Minimum size of a word:\n"
+ html += """<input type="number" name="word_size" value="%s" min="2" max="15" step="1" size="2"></form>\n""" % (word_size,)
html += '<div style="width: 35%; overflow:hidden; text-align: justify">' + \
utils.tag_cloud(top_words) + '</div>'
bgstack15