Change position for map links to save vertical screen realestate

main
Bob Mottram 2022-08-23 10:01:41 +01:00
parent 6ab8deefec
commit 7ae8db96d8
2 changed files with 7 additions and 3 deletions

View File

@ -617,5 +617,5 @@ def html_hashtag_maps(base_dir: str, tag_name: str,
'" download="' + download_filename + '">' + \
description + '</a>'
if html_str:
html_str = '<center>🌍 ' + html_str + '</center>\n'
html_str = '🌍 ' + html_str
return html_str

View File

@ -797,6 +797,12 @@ def html_hashtag_search(nickname: str, domain: str, port: int,
hashtag_search_form += '<center>\n' + \
'<h1>#' + hashtag + '</h1>\n'
# maps for geolocations with this hashtag
maps_str = html_hashtag_maps(base_dir, hashtag, translate)
if maps_str:
maps_str += ' '
hashtag_search_form += maps_str
# RSS link for hashtag feed
hashtag_search_form += '<a href="/tags/rss2/' + hashtag + '">'
hashtag_search_form += \
@ -825,8 +831,6 @@ def html_hashtag_search(nickname: str, domain: str, port: int,
hashtag_search_form += ' </form>\n'
hashtag_search_form += '</div>\n'
hashtag_search_form += html_hashtag_maps(base_dir, hashtag, translate)
if start_index > 0:
# previous page link
hashtag_search_form += \