aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-10-09 08:28:34 +0200
committercedricbonhomme <devnull@localhost>2012-10-09 08:28:34 +0200
commit092c2d38a0267308bc521e133f21f2652676f16d (patch)
tree2bd7010271102f10ef16c1a29bbd61c1ab2e46a9
parentImproved the display of the 'feed' page. (diff)
downloadnewspipe-092c2d38a0267308bc521e133f21f2652676f16d.tar.gz
newspipe-092c2d38a0267308bc521e133f21f2652676f16d.tar.bz2
newspipe-092c2d38a0267308bc521e133f21f2652676f16d.zip
Improved the display of the 'statistics' page.
-rwxr-xr-xsource/pyAggr3g470r.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index ae623214..dd26807f 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -308,13 +308,12 @@ class Root:
# Some statistics (most frequent word)
if articles:
top_words = utils.top_words(articles, n=50, size=int(word_size))
- html += "<h1>Statistics</h1>\n<br />\n"
+ html += "<h1>Statistics</h1>\n"
+ html += "<h3>Tag cloud</h3>\n"
# Tags cloud
- html += 'Minimum size of a word:'
- html += '<form method=get action="/statistics/">'
- 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 += '<br /><h3>Tag cloud</h3>\n'
+ html += '<form method=get action="/statistics/">\n'
+ 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>'
html += "<hr />\n"
bgstack15