mirror of https://gitlab.com/bashrc2/epicyon
Link to search
parent
44257aa7a6
commit
53a0784625
|
@ -747,7 +747,13 @@ def htmlHashtagSearch(nickname: str, domain: str, port: int,
|
||||||
|
|
||||||
# add the page title
|
# add the page title
|
||||||
hashtagSearchForm = htmlHeader(cssFilename, hashtagSearchCSS)
|
hashtagSearchForm = htmlHeader(cssFilename, hashtagSearchCSS)
|
||||||
hashtagSearchForm += '<center><h1>#' + hashtag + '</h1></center>'
|
if nickname:
|
||||||
|
hashtagSearchForm += '<center>\n' + \
|
||||||
|
'<h1><a href="/users/' + nickname + '/search">#' + \
|
||||||
|
hashtag + '</a></h1>\n' + '</center>\n'
|
||||||
|
else:
|
||||||
|
hashtagSearchForm += '<center>\n' + \
|
||||||
|
'<h1>#' + hashtag + '</h1>\n' + '</center>\n'
|
||||||
|
|
||||||
if startIndex > 0:
|
if startIndex > 0:
|
||||||
# previous page link
|
# previous page link
|
||||||
|
@ -758,7 +764,7 @@ def htmlHashtagSearch(nickname: str, domain: str, port: int,
|
||||||
iconsDir + '/pageup.png" title="' + \
|
iconsDir + '/pageup.png" title="' + \
|
||||||
translate['Page up'] + \
|
translate['Page up'] + \
|
||||||
'" alt="' + translate['Page up'] + \
|
'" alt="' + translate['Page up'] + \
|
||||||
'"></a></center>'
|
'"></a></center>\n'
|
||||||
index = startIndex
|
index = startIndex
|
||||||
while index <= endIndex:
|
while index <= endIndex:
|
||||||
postId = lines[index].strip('\n').strip('\r')
|
postId = lines[index].strip('\n').strip('\r')
|
||||||
|
|
Loading…
Reference in New Issue