From f4bc4ab0d56c0d95b91a288f4772c22117fc56c4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 1 Oct 2020 12:00:56 +0100 Subject: [PATCH] Page up and down divs --- epicyon-profile.css | 4 ++++ webinterface.py | 57 +++++++++++++++++++++++++++++---------------- 2 files changed, 41 insertions(+), 20 deletions(-) diff --git a/epicyon-profile.css b/epicyon-profile.css index c460d2fe..47209bd5 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -93,6 +93,10 @@ body, html { line-height: var(--line-spacing); } +.pageupdown { + text-align: center; +} + blockquote { border-left: 10px; margin: 1.5em 10px; diff --git a/webinterface.py b/webinterface.py index 1adbdddf..e87da78e 100644 --- a/webinterface.py +++ b/webinterface.py @@ -581,7 +581,8 @@ def htmlSearchSharedItems(translate: {}, 'name="searchtext" value="' + \ searchStrLower + '">
\n' sharedItemsForm += \ - '
\n' + \ + ' \n' sharedItemsForm += \ ' ' + translate['Page up'] + \
                                     '\n' - sharedItemsForm += '
\n' + sharedItemsForm += ' \n' sharedItemsForm += '\n' resultsExist = True ctr += 1 @@ -614,7 +615,8 @@ def htmlSearchSharedItems(translate: {}, 'name="searchtext" value="' + \ searchStrLower + '">
\n' sharedItemsForm += \ - '
\n' + \ + ' \n' sharedItemsForm += \ ' ' + translate['Page down'] + \
                                     '\n' - sharedItemsForm += '
\n' + sharedItemsForm += ' \n' sharedItemsForm += '\n' break ctr = 0 @@ -777,13 +779,14 @@ def htmlHashtagSearch(nickname: str, domain: str, port: int, if startIndex > 0: # previous page link hashtagSearchForm += \ - '
\n' + \ + ' ' + translate['Page up'] + \
-            '
\n' + '">\n \n' index = startIndex while index <= endIndex: postId = lines[index].strip('\n').strip('\r') @@ -832,11 +835,13 @@ def htmlHashtagSearch(nickname: str, domain: str, port: int, if endIndex < noOfLines - 1: # next page link hashtagSearchForm += \ - '
\n' + \ + ' ' + translate['Page down'] + '
' + '" alt="' + translate['Page down'] + '">' + \ + ' ' hashtagSearchForm += htmlFooter() return hashtagSearchForm @@ -2736,12 +2741,14 @@ def htmlProfileFollowing(translate: {}, baseDir: str, httpPrefix: str, if authorized and pageNumber > 1: # page up arrow profileStr += \ - '
\n\n' + \ + ' ' + \
-                translate['Page up'] + '\n
\n' + translate['Page up'] + '">\n' + \ + ' \n' for item in followingJson['orderedItems']: profileStr += \ @@ -2754,12 +2761,14 @@ def htmlProfileFollowing(translate: {}, baseDir: str, httpPrefix: str, if len(followingJson['orderedItems']) >= maxItemsPerPage: # page down arrow profileStr += \ - '
\n\n' + \ + ' ' + \
-                translate['Page down'] + '\n
\n' + translate['Page down'] + '">\n' + \ + ' \n' return profileStr @@ -2916,11 +2925,13 @@ def htmlSharesTimeline(translate: {}, pageNumber: int, itemsPerPage: int, if pageNumber > 1: iconsDir = getIconsDir(baseDir) timelineStr += \ - '
\n\n' + \ + ' ' + translate['Page up'] + '\n
\n' + '" alt="' + translate['Page up'] + '">\n' + \ + ' \n' for published, item in sharesJson.items(): showContactButton = False @@ -2936,11 +2947,13 @@ def htmlSharesTimeline(translate: {}, pageNumber: int, itemsPerPage: int, if not lastPage: iconsDir = getIconsDir(baseDir) timelineStr += \ - '
\n\n' + \ + ' ' + translate['Page down'] + '\n
\n' + '" alt="' + translate['Page down'] + '">\n' + \ + ' \n' return timelineStr @@ -5577,12 +5590,14 @@ def htmlTimeline(defaultTimeline: str, # page up arrow if pageNumber > 1: tlStr += \ - '
\n\n' + \ + ' ' + \
-            translate['Page up'] + '\n
\n' + translate['Page up'] + '">\n' + \ + ' \n' # show the posts itemCtr = 0 @@ -5680,12 +5695,14 @@ def htmlTimeline(defaultTimeline: str, # page down arrow if itemCtr > 2: tlStr += \ - '
\n\n' + \ + ' ' + \
-            translate['Page down'] + '\n
\n' + translate['Page down'] + '">\n' + \ + ' \n' tlStr += htmlFooter() return tlStr