Link back to search screen

main
Bob Mottram 2020-12-07 12:25:32 +00:00
parent 0565e429c5
commit 51255965b1
2 changed files with 8 additions and 4 deletions

View File

@ -2392,7 +2392,8 @@ class PubServer(BaseHTTPRequestHandler):
# skill search
searchStr = searchStr.replace('*', '').strip()
skillStr = \
htmlSkillsSearch(self.server.cssCache,
htmlSkillsSearch(actorStr,
self.server.cssCache,
self.server.translate,
baseDir,
httpPrefix,

View File

@ -384,7 +384,8 @@ def htmlSearch(cssCache: {}, translate: {},
return followStr
def htmlSkillsSearch(cssCache: {}, translate: {}, baseDir: str,
def htmlSkillsSearch(actor: str,
cssCache: {}, translate: {}, baseDir: str,
httpPrefix: str,
skillsearch: str, instanceOnly: bool,
postsPerPage: int) -> str:
@ -475,8 +476,10 @@ def htmlSkillsSearch(cssCache: {}, translate: {}, baseDir: str,
skillSearchForm = htmlHeaderWithExternalStyle(cssFilename)
skillSearchForm += \
'<center><h1>' + translate['Skills search'] + ': ' + \
skillsearch + '</h1></center>'
'<center><h1><a href = "' + actor + '/search">' \
translate['Skills search'] + ': ' + \
skillsearch + \
'</a></h1></center>'
if len(results) == 0:
skillSearchForm += \