forked from indymedia/epicyon
Link cell
parent
7567e79536
commit
e7ba00a184
|
@ -2972,12 +2972,11 @@ 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+=' <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:
|
||||
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:
|
||||
# No events today
|
||||
if not isToday:
|
||||
|
|
Loading…
Reference in New Issue