mirror of https://gitlab.com/bashrc2/epicyon
Comments
parent
08ff5b420c
commit
c4c0cf1679
|
@ -4967,11 +4967,15 @@ def htmlTimeline(defaultTimeline: str,
|
||||||
if boxName == 'inbox' and pageNumber == 1:
|
if boxName == 'inbox' and pageNumber == 1:
|
||||||
if todaysEventsCheck(baseDir, nickname, domain):
|
if todaysEventsCheck(baseDir, nickname, domain):
|
||||||
now = datetime.now()
|
now = datetime.now()
|
||||||
|
|
||||||
|
# happening today button
|
||||||
tlStr += \
|
tlStr += \
|
||||||
'<center>\n<a href="' + usersPath + '/calendar?year=' + \
|
'<center>\n<a href="' + usersPath + '/calendar?year=' + \
|
||||||
str(now.year) + '?month=' + str(now.month) + \
|
str(now.year) + '?month=' + str(now.month) + \
|
||||||
'?day=' + str(now.day) + '"><button class="buttonevent">' + \
|
'?day=' + str(now.day) + '"><button class="buttonevent">' + \
|
||||||
translate['Happening Today'] + '</button></a>\n'
|
translate['Happening Today'] + '</button></a>\n'
|
||||||
|
|
||||||
|
# happening this week button
|
||||||
if thisWeeksEventsCheck(baseDir, nickname, domain):
|
if thisWeeksEventsCheck(baseDir, nickname, domain):
|
||||||
tlStr += \
|
tlStr += \
|
||||||
'<a href="' + usersPath + \
|
'<a href="' + usersPath + \
|
||||||
|
@ -4979,6 +4983,7 @@ def htmlTimeline(defaultTimeline: str,
|
||||||
translate['Happening This Week'] + '</button></a>\n'
|
translate['Happening This Week'] + '</button></a>\n'
|
||||||
tlStr += '</center>\n'
|
tlStr += '</center>\n'
|
||||||
else:
|
else:
|
||||||
|
# happening this week button
|
||||||
if thisWeeksEventsCheck(baseDir, nickname, domain):
|
if thisWeeksEventsCheck(baseDir, nickname, domain):
|
||||||
tlStr += \
|
tlStr += \
|
||||||
'<center>\n<a href="' + usersPath + \
|
'<center>\n<a href="' + usersPath + \
|
||||||
|
@ -4999,10 +5004,13 @@ def htmlTimeline(defaultTimeline: str,
|
||||||
# show the posts
|
# show the posts
|
||||||
itemCtr = 0
|
itemCtr = 0
|
||||||
if timelineJson:
|
if timelineJson:
|
||||||
|
# if this is the media timeline then add an extra gallery container
|
||||||
if boxName == 'tlmedia':
|
if boxName == 'tlmedia':
|
||||||
if pageNumber > 1:
|
if pageNumber > 1:
|
||||||
tlStr += '<br>'
|
tlStr += '<br>'
|
||||||
tlStr += '<div class="galleryContainer">\n'
|
tlStr += '<div class="galleryContainer">\n'
|
||||||
|
|
||||||
|
# show each post in the timeline
|
||||||
for item in timelineJson['orderedItems']:
|
for item in timelineJson['orderedItems']:
|
||||||
if item['type'] == 'Create' or \
|
if item['type'] == 'Create' or \
|
||||||
item['type'] == 'Announce' or \
|
item['type'] == 'Announce' or \
|
||||||
|
|
Loading…
Reference in New Issue