diff --git a/epicyon-calendar.css b/epicyon-calendar.css index 13052d0d8..b570d4b9f 100644 --- a/epicyon-calendar.css +++ b/epicyon-calendar.css @@ -139,3 +139,11 @@ tr:nth-child(even) > .calendar__day__cell:nth-child(even) { height: 5rem; text-transform: uppercase; } +.buttonprev { + width: 2%; +} +.buttonnext { + width: 2%; + -webkit-transform: scaleX(-1); + transform: scaleX(-1); +} diff --git a/img/icons/prev.png b/img/icons/prev.png new file mode 100644 index 000000000..f9bbb1e72 Binary files /dev/null and b/img/icons/prev.png differ diff --git a/webinterface.py b/webinterface.py index 3cb0972e9..fefa4aea4 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2838,6 +2838,18 @@ def htmlCalendar(translate: {}, \ year=currDate.year monthNumber=currDate.month + prevYear=year + prevMonthNumber=monthNumber-1 + if prevMonthNumber<1: + prevMonthNumber=12 + prevYear=year-1 + + nextYear=year + nextMonthNumber=monthNumber+1 + if nextMonthNumber>12: + nextMonthNumber=1 + nextYear=year+1 + print('Calendar year='+str(year)+' month='+str(monthNumber)+ ' '+str(weekDayOfMonthStart(monthNumber,year))) nickname=getNicknameFromActor(actor) @@ -2866,7 +2878,11 @@ def htmlCalendar(translate: {}, \ calendarStr=htmlHeader(cssFilename,calendarStyle) calendarStr+='
\n' calendarStr+='\n' calendarStr+='\n' calendarStr+='\n'
\n' + calendarStr+=' ' + calendarStr+=' \n' calendarStr+='

'+monthName+'

\n' + calendarStr+=' ' + calendarStr+=' \n' calendarStr+='