mirror of https://gitlab.com/bashrc2/epicyon
Change position for map links to save vertical screen realestate
parent
6ab8deefec
commit
7ae8db96d8
2
maps.py
2
maps.py
|
@ -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
|
||||
|
|
|
@ -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 += \
|
||||
|
|
Loading…
Reference in New Issue