diff --git a/epicyon-follow.css b/epicyon-follow.css index 740f7e63..f9224f6f 100644 --- a/epicyon-follow.css +++ b/epicyon-follow.css @@ -124,7 +124,7 @@ input[type=text] { } @media screen and (min-width: 400px) { - .hashtagcloud { + .hashtagswarm { font-size: 30px; padding: 30px; line-height: 60px; @@ -157,7 +157,7 @@ input[type=text] { } @media screen and (max-width: 1000px) { - .hashtagcloud { + .hashtagswarm { font-size: 40px; padding: 40px; line-height: 70px; diff --git a/webinterface.py b/webinterface.py index 1632f2ab..fc1eb45c 100644 --- a/webinterface.py +++ b/webinterface.py @@ -3755,13 +3755,13 @@ def htmlCalendar(translate: {}, \ calendarStr+=htmlFooter() return calendarStr -def htmlHashTagCloud(baseDir: str,actor: str) -> str: - """Returns a tag cloud of today's hashtags +def htmlHashTagSwarm(baseDir: str,actor: str) -> str: + """Returns a tag swarm of today's hashtags """ daysSinceEpoch=(datetime.utcnow() - datetime(1970,1,1)).days daysSinceEpochStr=str(daysSinceEpoch)+' ' nickname=getNicknameFromActor(actor) - tagCloud=[] + tagSwarm=[] for subdir, dirs, files in os.walk(baseDir+'/tags'): for f in files: tagsFilename=os.path.join(baseDir+'/tags',f) @@ -3784,16 +3784,16 @@ def htmlHashTagCloud(baseDir: str,actor: str) -> str: if postDaysSinceEpoch'+tagName+' ' - tagCloudHtml=tagCloudStr.strip()+'\n' - return tagCloudHtml + tagSwarm.sort() + tagSwarmStr='' + for tagName in tagSwarm: + tagSwarmStr+=''+tagName+' ' + tagSwarmHtml=tagSwarmStr.strip()+'\n' + return tagSwarmHtml def htmlSearch(translate: {}, \ baseDir: str,path: str) -> str: @@ -3822,7 +3822,7 @@ def htmlSearch(translate: {}, \ followStr+='
' followStr+=' ' followStr+=' ' - followStr+='

'+htmlHashTagCloud(baseDir,actor)+'

' + followStr+='

'+htmlHashTagSwarm(baseDir,actor)+'

' followStr+=' ' followStr+=' ' followStr+=''