Center page down

main
Bob Mottram 2020-10-01 14:01:49 +01:00
parent d082a8d084
commit be5cbe7844
1 changed files with 18 additions and 18 deletions

View File

@ -581,7 +581,7 @@ def htmlSearchSharedItems(translate: {},
'name="searchtext" value="' + \ 'name="searchtext" value="' + \
searchStrLower + '"><br>\n' searchStrLower + '"><br>\n'
sharedItemsForm += \ sharedItemsForm += \
' <div class="pageup">\n' + \ ' <center>\n' + \
' <a href="' + actor + \ ' <a href="' + actor + \
'" type="submit" name="submitSearch">\n' '" type="submit" name="submitSearch">\n'
sharedItemsForm += \ sharedItemsForm += \
@ -591,7 +591,7 @@ def htmlSearchSharedItems(translate: {},
translate['Page up'] + \ translate['Page up'] + \
'" alt="' + translate['Page up'] + \ '" alt="' + translate['Page up'] + \
'"/></a>\n' '"/></a>\n'
sharedItemsForm += ' </div>\n' sharedItemsForm += ' </center>\n'
sharedItemsForm += '</form>\n' sharedItemsForm += '</form>\n'
resultsExist = True resultsExist = True
ctr += 1 ctr += 1
@ -615,7 +615,7 @@ def htmlSearchSharedItems(translate: {},
'name="searchtext" value="' + \ 'name="searchtext" value="' + \
searchStrLower + '"><br>\n' searchStrLower + '"><br>\n'
sharedItemsForm += \ sharedItemsForm += \
' <div class="pagedown">\n' + \ ' <center>\n' + \
' <a href="' + actor + \ ' <a href="' + actor + \
'" type="submit" name="submitSearch">\n' '" type="submit" name="submitSearch">\n'
sharedItemsForm += \ sharedItemsForm += \
@ -625,7 +625,7 @@ def htmlSearchSharedItems(translate: {},
translate['Page down'] + \ translate['Page down'] + \
'" alt="' + translate['Page down'] + \ '" alt="' + translate['Page down'] + \
'"/></a>\n' '"/></a>\n'
sharedItemsForm += ' </div>\n' sharedItemsForm += ' </center>\n'
sharedItemsForm += '</form>\n' sharedItemsForm += '</form>\n'
break break
ctr = 0 ctr = 0
@ -779,14 +779,14 @@ def htmlHashtagSearch(nickname: str, domain: str, port: int,
if startIndex > 0: if startIndex > 0:
# previous page link # previous page link
hashtagSearchForm += \ hashtagSearchForm += \
' <div class="pageup">\n' + \ ' <center>\n' + \
' <a href="/tags/' + hashtag + '?page=' + \ ' <a href="/tags/' + hashtag + '?page=' + \
str(pageNumber - 1) + \ str(pageNumber - 1) + \
'"><img loading="lazy" class="pageicon" src="/' + \ '"><img loading="lazy" class="pageicon" src="/' + \
iconsDir + '/pageup.png" title="' + \ iconsDir + '/pageup.png" title="' + \
translate['Page up'] + \ translate['Page up'] + \
'" alt="' + translate['Page up'] + \ '" alt="' + translate['Page up'] + \
'"></a>\n </div>\n' '"></a>\n </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')
@ -835,13 +835,13 @@ def htmlHashtagSearch(nickname: str, domain: str, port: int,
if endIndex < noOfLines - 1: if endIndex < noOfLines - 1:
# next page link # next page link
hashtagSearchForm += \ hashtagSearchForm += \
' <div class="pagedown">\n' + \ ' <center>\n' + \
' <a href="/tags/' + hashtag + \ ' <a href="/tags/' + hashtag + \
'?page=' + str(pageNumber + 1) + \ '?page=' + str(pageNumber + 1) + \
'"><img loading="lazy" class="pageicon" src="/' + iconsDir + \ '"><img loading="lazy" class="pageicon" src="/' + iconsDir + \
'/pagedown.png" title="' + translate['Page down'] + \ '/pagedown.png" title="' + translate['Page down'] + \
'" alt="' + translate['Page down'] + '"></a>' + \ '" alt="' + translate['Page down'] + '"></a>' + \
' </div>' ' </center>'
hashtagSearchForm += htmlFooter() hashtagSearchForm += htmlFooter()
return hashtagSearchForm return hashtagSearchForm
@ -2741,14 +2741,14 @@ def htmlProfileFollowing(translate: {}, baseDir: str, httpPrefix: str,
if authorized and pageNumber > 1: if authorized and pageNumber > 1:
# page up arrow # page up arrow
profileStr += \ profileStr += \
' <div class="pageup">\n' + \ ' <center>\n' + \
' <a href="' + actor + '/' + feedName + \ ' <a href="' + actor + '/' + feedName + \
'?page=' + str(pageNumber - 1) + \ '?page=' + str(pageNumber - 1) + \
'"><img loading="lazy" class="pageicon" src="/' + \ '"><img loading="lazy" class="pageicon" src="/' + \
iconsDir + '/pageup.png" title="' + \ iconsDir + '/pageup.png" title="' + \
translate['Page up'] + '" alt="' + \ translate['Page up'] + '" alt="' + \
translate['Page up'] + '"></a>\n' + \ translate['Page up'] + '"></a>\n' + \
' </div>\n' ' </center>\n'
for item in followingJson['orderedItems']: for item in followingJson['orderedItems']:
profileStr += \ profileStr += \
@ -2761,14 +2761,14 @@ def htmlProfileFollowing(translate: {}, baseDir: str, httpPrefix: str,
if len(followingJson['orderedItems']) >= maxItemsPerPage: if len(followingJson['orderedItems']) >= maxItemsPerPage:
# page down arrow # page down arrow
profileStr += \ profileStr += \
' <div class="pagedown">\n' + \ ' <center>\n' + \
' <a href="' + actor + '/' + feedName + \ ' <a href="' + actor + '/' + feedName + \
'?page=' + str(pageNumber + 1) + \ '?page=' + str(pageNumber + 1) + \
'"><img loading="lazy" class="pageicon" src="/' + \ '"><img loading="lazy" class="pageicon" src="/' + \
iconsDir + '/pagedown.png" title="' + \ iconsDir + '/pagedown.png" title="' + \
translate['Page down'] + '" alt="' + \ translate['Page down'] + '" alt="' + \
translate['Page down'] + '"></a>\n' + \ translate['Page down'] + '"></a>\n' + \
' </div>\n' ' </center>\n'
return profileStr return profileStr
@ -2925,13 +2925,13 @@ def htmlSharesTimeline(translate: {}, pageNumber: int, itemsPerPage: int,
if pageNumber > 1: if pageNumber > 1:
iconsDir = getIconsDir(baseDir) iconsDir = getIconsDir(baseDir)
timelineStr += \ timelineStr += \
' <div class="pageup">\n' + \ ' <center>\n' + \
' <a href="' + actor + '/tlshares?page=' + \ ' <a href="' + actor + '/tlshares?page=' + \
str(pageNumber - 1) + \ str(pageNumber - 1) + \
'"><img loading="lazy" class="pageicon" src="/' + \ '"><img loading="lazy" class="pageicon" src="/' + \
iconsDir + '/pageup.png" title="' + translate['Page up'] + \ iconsDir + '/pageup.png" title="' + translate['Page up'] + \
'" alt="' + translate['Page up'] + '"></a>\n' + \ '" alt="' + translate['Page up'] + '"></a>\n' + \
' </div>\n' ' </center>\n'
for published, item in sharesJson.items(): for published, item in sharesJson.items():
showContactButton = False showContactButton = False
@ -2947,13 +2947,13 @@ def htmlSharesTimeline(translate: {}, pageNumber: int, itemsPerPage: int,
if not lastPage: if not lastPage:
iconsDir = getIconsDir(baseDir) iconsDir = getIconsDir(baseDir)
timelineStr += \ timelineStr += \
' <div class="pagedown">\n' + \ ' <center>\n' + \
' <a href="' + actor + '/tlshares?page=' + \ ' <a href="' + actor + '/tlshares?page=' + \
str(pageNumber + 1) + \ str(pageNumber + 1) + \
'"><img loading="lazy" class="pageicon" src="/' + \ '"><img loading="lazy" class="pageicon" src="/' + \
iconsDir + '/pagedown.png" title="' + translate['Page down'] + \ iconsDir + '/pagedown.png" title="' + translate['Page down'] + \
'" alt="' + translate['Page down'] + '"></a>\n' + \ '" alt="' + translate['Page down'] + '"></a>\n' + \
' </div>\n' ' </center>\n'
return timelineStr return timelineStr
@ -5590,14 +5590,14 @@ def htmlTimeline(defaultTimeline: str,
# page up arrow # page up arrow
if pageNumber > 1: if pageNumber > 1:
tlStr += \ tlStr += \
' <div class="pageup">\n' + \ ' <center>\n' + \
' <a href="' + usersPath + '/' + boxName + \ ' <a href="' + usersPath + '/' + boxName + \
'?page=' + str(pageNumber - 1) + \ '?page=' + str(pageNumber - 1) + \
'"><img loading="lazy" class="pageicon" src="/' + \ '"><img loading="lazy" class="pageicon" src="/' + \
iconsDir + '/pageup.png" title="' + \ iconsDir + '/pageup.png" title="' + \
translate['Page up'] + '" alt="' + \ translate['Page up'] + '" alt="' + \
translate['Page up'] + '"></a>\n' + \ translate['Page up'] + '"></a>\n' + \
' </div>\n' ' </center>\n'
# show the posts # show the posts
itemCtr = 0 itemCtr = 0