main2
Bob Mottram 2019-10-11 20:54:36 +01:00
parent e7ba00a184
commit 09a5b930c7
1 changed files with 3 additions and 2 deletions

View File

@ -2972,11 +2972,12 @@ def htmlCalendar(translate: {}, \
if eventDots=='...':
break
url=actor+'/calendar?year='+str(year)+'?month='+str(monthNumber)+'?day='+str(dayOfMonth)
dayLink='<a href="'+url+'"> '+str(dayOfMonth)+' </a>'
# there are events for this day
if not isToday:
calendarStr+=' <a href="'+url+'"><td class="calendar__day__cell" data-event="'+eventDots+'">'+str(dayOfMonth)+'</td></a>\n'
calendarStr+=' <td class="calendar__day__cell" data-event="'+eventDots+'">'+dayLink+'</td>\n'
else:
calendarStr+=' <a href="'+url+'"><td class="calendar__day__cell" data-today-event="'+eventDots+'">'+str(dayOfMonth)+'</td></a>\n'
calendarStr+=' <td class="calendar__day__cell" data-today-event="'+eventDots+'">'+dayLink+'</td>\n'
else:
# No events today
if not isToday: