mirror of https://gitlab.com/bashrc2/epicyon
Remove calendar dots
parent
8c3c429496
commit
521249499b
|
@ -2965,20 +2965,13 @@ def htmlCalendar(translate: {}, \
|
||||||
if dayOfMonth==currDate.day:
|
if dayOfMonth==currDate.day:
|
||||||
isToday=True
|
isToday=True
|
||||||
if events.get(str(dayOfMonth)):
|
if events.get(str(dayOfMonth)):
|
||||||
eventDots=''
|
|
||||||
if len(events[str(dayOfMonth)])>1:
|
|
||||||
for ev in events[str(dayOfMonth)]:
|
|
||||||
eventDots+='.'
|
|
||||||
if eventDots=='...':
|
|
||||||
break
|
|
||||||
eventDots='..'
|
|
||||||
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>'
|
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+=' <td class="calendar__day__cell" data-event="">'+dayLink+'</td>\n'
|
||||||
else:
|
else:
|
||||||
calendarStr+=' <td class="calendar__day__cell" data-today-event="'+eventDots+'">'+dayLink+'</td>\n'
|
calendarStr+=' <td class="calendar__day__cell" data-today-event="">'+dayLink+'</td>\n'
|
||||||
else:
|
else:
|
||||||
# No events today
|
# No events today
|
||||||
if not isToday:
|
if not isToday:
|
||||||
|
|
Loading…
Reference in New Issue