mirror of https://gitlab.com/bashrc2/epicyon
Remove spaces
parent
2ce228fd31
commit
aa5743e575
|
@ -6220,29 +6220,29 @@ def headerButtonsTimeline(defaultTimeline: str,
|
||||||
buttons for inbox, outbox, search, calendar, etc
|
buttons for inbox, outbox, search, calendar, etc
|
||||||
"""
|
"""
|
||||||
# start of the button header with inbox, outbox, etc
|
# start of the button header with inbox, outbox, etc
|
||||||
tlStr = ' <div class="containerHeader">\n'
|
tlStr = '<div class="containerHeader">\n'
|
||||||
# first button
|
# first button
|
||||||
if defaultTimeline == 'tlmedia':
|
if defaultTimeline == 'tlmedia':
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
'<a href="' + usersPath + \
|
||||||
'/tlmedia"><button class="' + \
|
'/tlmedia"><button class="' + \
|
||||||
mediaButton + '"><span>' + translate['Media'] + \
|
mediaButton + '"><span>' + translate['Media'] + \
|
||||||
'</span></button></a>'
|
'</span></button></a>'
|
||||||
elif defaultTimeline == 'tlblogs':
|
elif defaultTimeline == 'tlblogs':
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
'<a href="' + usersPath + \
|
||||||
'/tlblogs"><button class="' + \
|
'/tlblogs"><button class="' + \
|
||||||
blogsButton + '"><span>' + translate['Blogs'] + \
|
blogsButton + '"><span>' + translate['Blogs'] + \
|
||||||
'</span></button></a>'
|
'</span></button></a>'
|
||||||
elif defaultTimeline == 'tlnews':
|
elif defaultTimeline == 'tlnews':
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
'<a href="' + usersPath + \
|
||||||
'/tlnews"><button class="' + \
|
'/tlnews"><button class="' + \
|
||||||
newsButton + '"><span>' + translate['Features'] + \
|
newsButton + '"><span>' + translate['Features'] + \
|
||||||
'</span></button></a>'
|
'</span></button></a>'
|
||||||
else:
|
else:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
'<a href="' + usersPath + \
|
||||||
'/inbox"><button class="' + \
|
'/inbox"><button class="' + \
|
||||||
inboxButton + '"><span>' + \
|
inboxButton + '"><span>' + \
|
||||||
translate['Inbox'] + '</span></button></a>'
|
translate['Inbox'] + '</span></button></a>'
|
||||||
|
@ -6254,13 +6254,13 @@ def headerButtonsTimeline(defaultTimeline: str,
|
||||||
|
|
||||||
if not newsHeader:
|
if not newsHeader:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
'<a href="' + usersPath + \
|
||||||
'/dm"><button class="' + dmButton + \
|
'/dm"><button class="' + dmButton + \
|
||||||
'"><span>' + htmlHighlightLabel(translate['DM'], newDM) + \
|
'"><span>' + htmlHighlightLabel(translate['DM'], newDM) + \
|
||||||
'</span></button></a>'
|
'</span></button></a>'
|
||||||
|
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + '/tlreplies"><button class="' + \
|
'<a href="' + usersPath + '/tlreplies"><button class="' + \
|
||||||
repliesButton + '"><span>' + \
|
repliesButton + '"><span>' + \
|
||||||
htmlHighlightLabel(translate['Replies'], newReply) + \
|
htmlHighlightLabel(translate['Replies'], newReply) + \
|
||||||
'</span></button></a>'
|
'</span></button></a>'
|
||||||
|
@ -6269,14 +6269,14 @@ def headerButtonsTimeline(defaultTimeline: str,
|
||||||
if defaultTimeline != 'tlmedia':
|
if defaultTimeline != 'tlmedia':
|
||||||
if not minimal and not newsHeader:
|
if not minimal and not newsHeader:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
'<a href="' + usersPath + \
|
||||||
'/tlmedia"><button class="' + \
|
'/tlmedia"><button class="' + \
|
||||||
mediaButton + '"><span>' + translate['Media'] + \
|
mediaButton + '"><span>' + translate['Media'] + \
|
||||||
'</span></button></a>'
|
'</span></button></a>'
|
||||||
else:
|
else:
|
||||||
if not minimal:
|
if not minimal:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
'<a href="' + usersPath + \
|
||||||
'/inbox"><button class="' + \
|
'/inbox"><button class="' + \
|
||||||
inboxButton+'"><span>' + translate['Inbox'] + \
|
inboxButton+'"><span>' + translate['Inbox'] + \
|
||||||
'</span></button></a>'
|
'</span></button></a>'
|
||||||
|
@ -6293,14 +6293,14 @@ def headerButtonsTimeline(defaultTimeline: str,
|
||||||
if defaultTimeline == 'tlnews':
|
if defaultTimeline == 'tlnews':
|
||||||
titleStr = translate['Article']
|
titleStr = translate['Article']
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
'<a href="' + usersPath + \
|
||||||
'/tlblogs"><button class="' + \
|
'/tlblogs"><button class="' + \
|
||||||
blogsButton + '"><span>' + titleStr + \
|
blogsButton + '"><span>' + titleStr + \
|
||||||
'</span></button></a>'
|
'</span></button></a>'
|
||||||
else:
|
else:
|
||||||
if not minimal:
|
if not minimal:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
'<a href="' + usersPath + \
|
||||||
'/inbox"><button class="' + \
|
'/inbox"><button class="' + \
|
||||||
inboxButton + '"><span>' + translate['Inbox'] + \
|
inboxButton + '"><span>' + translate['Inbox'] + \
|
||||||
'</span></button></a>'
|
'</span></button></a>'
|
||||||
|
@ -6309,14 +6309,14 @@ def headerButtonsTimeline(defaultTimeline: str,
|
||||||
# but may change if this is a news oriented instance
|
# but may change if this is a news oriented instance
|
||||||
if defaultTimeline != 'tlnews':
|
if defaultTimeline != 'tlnews':
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
'<a href="' + usersPath + \
|
||||||
'/tlnews"><button class="' + \
|
'/tlnews"><button class="' + \
|
||||||
newsButton + '"><span>' + translate['News'] + \
|
newsButton + '"><span>' + translate['News'] + \
|
||||||
'</span></button></a>'
|
'</span></button></a>'
|
||||||
else:
|
else:
|
||||||
if not newsHeader:
|
if not newsHeader:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
'<a href="' + usersPath + \
|
||||||
'/inbox"><button class="' + \
|
'/inbox"><button class="' + \
|
||||||
inboxButton + '"><span>' + translate['Inbox'] + \
|
inboxButton + '"><span>' + translate['Inbox'] + \
|
||||||
'</span></button></a>'
|
'</span></button></a>'
|
||||||
|
@ -6324,7 +6324,7 @@ def headerButtonsTimeline(defaultTimeline: str,
|
||||||
if not newsHeader:
|
if not newsHeader:
|
||||||
# button for the outbox
|
# button for the outbox
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
'<a href="' + usersPath + \
|
||||||
'/outbox"><button class="' + \
|
'/outbox"><button class="' + \
|
||||||
sentButton + '"><span>' + translate['Outbox'] + \
|
sentButton + '"><span>' + translate['Outbox'] + \
|
||||||
'</span></button></a>'
|
'</span></button></a>'
|
||||||
|
@ -6342,14 +6342,14 @@ def headerButtonsTimeline(defaultTimeline: str,
|
||||||
# happening today button
|
# happening today button
|
||||||
if not iconsAsButtons:
|
if not iconsAsButtons:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + '/calendar?year=' + \
|
'<a href="' + usersPath + '/calendar?year=' + \
|
||||||
str(now.year) + '?month=' + str(now.month) + \
|
str(now.year) + '?month=' + str(now.month) + \
|
||||||
'?day=' + str(now.day) + '">' + \
|
'?day=' + str(now.day) + '">' + \
|
||||||
'<button class="buttonevent">' + \
|
'<button class="buttonevent">' + \
|
||||||
translate['Happening Today'] + '</button></a>'
|
translate['Happening Today'] + '</button></a>'
|
||||||
else:
|
else:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + '/calendar?year=' + \
|
'<a href="' + usersPath + '/calendar?year=' + \
|
||||||
str(now.year) + '?month=' + str(now.month) + \
|
str(now.year) + '?month=' + str(now.month) + \
|
||||||
'?day=' + str(now.day) + '">' + \
|
'?day=' + str(now.day) + '">' + \
|
||||||
'<button class="button">' + \
|
'<button class="button">' + \
|
||||||
|
@ -6359,12 +6359,12 @@ def headerButtonsTimeline(defaultTimeline: str,
|
||||||
if thisWeeksEventsCheck(baseDir, nickname, domain):
|
if thisWeeksEventsCheck(baseDir, nickname, domain):
|
||||||
if not iconsAsButtons:
|
if not iconsAsButtons:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
'<a href="' + usersPath + \
|
||||||
'/calendar"><button class="buttonevent">' + \
|
'/calendar"><button class="buttonevent">' + \
|
||||||
translate['Happening This Week'] + '</button></a>'
|
translate['Happening This Week'] + '</button></a>'
|
||||||
else:
|
else:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
'<a href="' + usersPath + \
|
||||||
'/calendar"><button class="button">' + \
|
'/calendar"><button class="button">' + \
|
||||||
translate['Happening This Week'] + '</button></a>'
|
translate['Happening This Week'] + '</button></a>'
|
||||||
else:
|
else:
|
||||||
|
@ -6372,12 +6372,12 @@ def headerButtonsTimeline(defaultTimeline: str,
|
||||||
if thisWeeksEventsCheck(baseDir, nickname, domain):
|
if thisWeeksEventsCheck(baseDir, nickname, domain):
|
||||||
if not iconsAsButtons:
|
if not iconsAsButtons:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
'<a href="' + usersPath + \
|
||||||
'/calendar"><button class="buttonevent">' + \
|
'/calendar"><button class="buttonevent">' + \
|
||||||
translate['Happening This Week'] + '</button></a>'
|
translate['Happening This Week'] + '</button></a>'
|
||||||
else:
|
else:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
'<a href="' + usersPath + \
|
||||||
'/calendar"><button class="button">' + \
|
'/calendar"><button class="button">' + \
|
||||||
translate['Happening This Week'] + '</button></a>'
|
translate['Happening This Week'] + '</button></a>'
|
||||||
|
|
||||||
|
@ -6393,7 +6393,7 @@ def headerButtonsTimeline(defaultTimeline: str,
|
||||||
'" class="timelineicon"/></a>'
|
'" class="timelineicon"/></a>'
|
||||||
else:
|
else:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + \
|
'<a href="' + usersPath + \
|
||||||
'/search"><button class="button">' + \
|
'/search"><button class="button">' + \
|
||||||
'<span>' + translate['Search'] + \
|
'<span>' + translate['Search'] + \
|
||||||
'</span></button></a>'
|
'</span></button></a>'
|
||||||
|
@ -6419,7 +6419,7 @@ def headerButtonsTimeline(defaultTimeline: str,
|
||||||
'" class="timelineicon"/></a>\n'
|
'" class="timelineicon"/></a>\n'
|
||||||
else:
|
else:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + calendarPath + \
|
'<a href="' + usersPath + calendarPath + \
|
||||||
'"><button class="button">' + \
|
'"><button class="button">' + \
|
||||||
'<span>' + translate['Calendar'] + \
|
'<span>' + translate['Calendar'] + \
|
||||||
'</span></button></a>'
|
'</span></button></a>'
|
||||||
|
@ -6436,14 +6436,14 @@ def headerButtonsTimeline(defaultTimeline: str,
|
||||||
'" class="timelineicon"/></a>\n'
|
'" class="timelineicon"/></a>\n'
|
||||||
else:
|
else:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + '/minimal' + \
|
'<a href="' + usersPath + '/minimal' + \
|
||||||
'"><button class="button">' + \
|
'"><button class="button">' + \
|
||||||
'<span>' + translate['Expand'] + \
|
'<span>' + translate['Expand'] + \
|
||||||
'</span></button></a>'
|
'</span></button></a>'
|
||||||
|
|
||||||
if newsHeader:
|
if newsHeader:
|
||||||
tlStr += \
|
tlStr += \
|
||||||
' <a href="' + usersPath + '/inbox">' + \
|
'<a href="' + usersPath + '/inbox">' + \
|
||||||
'<button class="button">' + \
|
'<button class="button">' + \
|
||||||
'<span>' + translate['User'] + '</span></button></a>'
|
'<span>' + translate['User'] + '</span></button></a>'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue