mirror of https://gitlab.com/bashrc2/epicyon
Icons for calendar
parent
dad86cd259
commit
1040f82312
|
@ -2876,6 +2876,7 @@ def htmlCalendar(translate: {}, \
|
||||||
httpPrefix: str,domainFull: str) -> str:
|
httpPrefix: str,domainFull: str) -> str:
|
||||||
"""Show the calendar for a person
|
"""Show the calendar for a person
|
||||||
"""
|
"""
|
||||||
|
iconsDir=getIconsDir(baseDir)
|
||||||
domain=domainFull
|
domain=domainFull
|
||||||
if ':' in domainFull:
|
if ':' in domainFull:
|
||||||
domain=domainFull.split(':')[0]
|
domain=domainFull.split(':')[0]
|
||||||
|
@ -2957,10 +2958,10 @@ def htmlCalendar(translate: {}, \
|
||||||
calendarStr+='<main><table class="calendar">\n'
|
calendarStr+='<main><table class="calendar">\n'
|
||||||
calendarStr+='<caption class="calendar__banner--month">\n'
|
calendarStr+='<caption class="calendar__banner--month">\n'
|
||||||
calendarStr+=' <a href="'+actor+'/calendar?year='+str(prevYear)+'?month='+str(prevMonthNumber)+'">'
|
calendarStr+=' <a href="'+actor+'/calendar?year='+str(prevYear)+'?month='+str(prevMonthNumber)+'">'
|
||||||
calendarStr+=' <img src="/icons/prev.png" class="buttonprev"/></a>\n'
|
calendarStr+=' <img src="/'+iconsDir+'/prev.png" class="buttonprev"/></a>\n'
|
||||||
calendarStr+=' <h1>'+monthName+'</h1>\n'
|
calendarStr+=' <h1>'+monthName+'</h1>\n'
|
||||||
calendarStr+=' <a href="'+actor+'/calendar?year='+str(nextYear)+'?month='+str(nextMonthNumber)+'">'
|
calendarStr+=' <a href="'+actor+'/calendar?year='+str(nextYear)+'?month='+str(nextMonthNumber)+'">'
|
||||||
calendarStr+=' <img src="/icons/prev.png" class="buttonnext"/></a>\n'
|
calendarStr+=' <img src="/'+iconsDir+'/prev.png" class="buttonnext"/></a>\n'
|
||||||
calendarStr+='</caption>\n'
|
calendarStr+='</caption>\n'
|
||||||
calendarStr+='<thead>\n'
|
calendarStr+='<thead>\n'
|
||||||
calendarStr+='<tr>\n'
|
calendarStr+='<tr>\n'
|
||||||
|
|
Loading…
Reference in New Issue