aboutsummaryrefslogtreecommitdiff
path: root/src/web/lib/misc_utils.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-20 15:08:47 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-20 15:08:47 +0200
commite60087e68546a8a9b483e09a78f4389fcc9ebc4e (patch)
treeacd780e7255d7de48a5519bc815c0e90f08d98b3 /src/web/lib/misc_utils.py
parentDraft for a public user profile page. (diff)
downloadnewspipe-e60087e68546a8a9b483e09a78f4389fcc9ebc4e.tar.gz
newspipe-e60087e68546a8a9b483e09a78f4389fcc9ebc4e.tar.bz2
newspipe-e60087e68546a8a9b483e09a78f4389fcc9ebc4e.zip
Few improvemnts for the tag cloud of the user's profile pages.
Diffstat (limited to 'src/web/lib/misc_utils.py')
-rwxr-xr-xsrc/web/lib/misc_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/lib/misc_utils.py b/src/web/lib/misc_utils.py
index 07cb6ed5..ea0b18ce 100755
--- a/src/web/lib/misc_utils.py
+++ b/src/web/lib/misc_utils.py
@@ -272,8 +272,8 @@ def tag_cloud(tags):
Generates a tags cloud.
"""
tags.sort(key=operator.itemgetter(0))
- return '\n'.join([('<font size=%d><a href="/search?query=%s" title="Count: %s">%s</a></font>' % \
- (min(1 + count * 7 / max([tag[1] for tag in tags]), 7), word, format(count, ',d'), word)) \
+ return '\n'.join([('<font size=%d>%s</font>' % \
+ (min(1 + count * 7 / max([tag[1] for tag in tags]), 7), word)) \
for (word, count) in tags])
if __name__ == "__main__":
bgstack15