mirror of https://gitlab.com/bashrc2/epicyon
Only show page navigation on hashtag if it is available
parent
78a7c7f395
commit
1a09c5887d
|
@ -1136,7 +1136,7 @@ def html_hashtag_search_remote(nickname: str, domain: str, port: int,
|
||||||
|
|
||||||
tag_link = '/users/' + nickname + '?remotetag=' + \
|
tag_link = '/users/' + nickname + '?remotetag=' + \
|
||||||
hashtag_url.replace('/', '--')
|
hashtag_url.replace('/', '--')
|
||||||
if page_number > 1:
|
if page_number > 1 and hashtag_json.get('first'):
|
||||||
# previous page link
|
# previous page link
|
||||||
hashtag_search_form += \
|
hashtag_search_form += \
|
||||||
' <center>\n' + \
|
' <center>\n' + \
|
||||||
|
@ -1228,7 +1228,7 @@ def html_hashtag_search_remote(nickname: str, domain: str, port: int,
|
||||||
if post_str:
|
if post_str:
|
||||||
hashtag_search_form += separator_str + post_str
|
hashtag_search_form += separator_str + post_str
|
||||||
|
|
||||||
if len(lines) >= 5:
|
if len(lines) >= 5 and hashtag_json.get('first'):
|
||||||
# next page link
|
# next page link
|
||||||
hashtag_search_form += \
|
hashtag_search_form += \
|
||||||
' <center>\n' + \
|
' <center>\n' + \
|
||||||
|
|
Loading…
Reference in New Issue