forked from indymedia/epicyon
Link cell
parent
7567e79536
commit
e7ba00a184
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue