Link to today's calendar

main
Bob Mottram 2020-02-22 18:01:16 +00:00
parent 256cc737e4
commit b73eda6826
1 changed files with 6 additions and 1 deletions

View File

@ -2963,7 +2963,12 @@ def htmlTimeline(defaultTimeline: str, \
# show todays events button
if boxName=='inbox':
if todaysEventsCheck(baseDir,nickname,domain):
tlStr+='<center><a href="'+actor+'/todaysevents"><button class="button">'+translate['Happening Today']+'</button></a></center>'
now=datetime.now()
tlStr+= \
'<center><a href="'+actor+'/calendar?year='+ \
str(now.year)+'?month='+str(now.month)+ \
'?day='+str(now.day)+'"><button class="button">'+ \
translate['Happening Today']+'</button></a></center>'
# page up arrow
if pageNumber>1: