Link cell

main2
Bob Mottram 2019-10-11 20:29:43 +01:00
parent 7567e79536
commit e7ba00a184
1 changed files with 2 additions and 3 deletions

View File

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