main
Bob Mottram 2021-07-05 20:35:57 +01:00
parent f5ac32000a
commit 4facd77906
1 changed files with 5 additions and 16 deletions

View File

@ -117,8 +117,7 @@ def _htmlCalendarDay(personCache: {}, cssCache: {}, translate: {},
if '/users/' in actor: if '/users/' in actor:
calActor = '/users/' + actor.split('/users/')[1] calActor = '/users/' + actor.split('/users/')[1]
instanceTitle = \ instanceTitle = getConfigParam(baseDir, 'instanceTitle')
getConfigParam(baseDir, 'instanceTitle')
calendarStr = htmlHeaderWithExternalStyle(cssFilename, instanceTitle) calendarStr = htmlHeaderWithExternalStyle(cssFilename, instanceTitle)
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'
@ -369,20 +368,10 @@ def htmlCalendar(personCache: {}, cssCache: {}, translate: {},
calendarStr += '</caption>\n' calendarStr += '</caption>\n'
calendarStr += '<thead>\n' calendarStr += '<thead>\n'
calendarStr += '<tr>\n' calendarStr += '<tr>\n'
calendarStr += ' <th scope="col" class="calendar__day__header">' + \ days = ('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat')
translate['Sun'] + '</th>\n' for d in days:
calendarStr += ' <th scope="col" class="calendar__day__header">' + \ calendarStr += ' <th scope="col" class="calendar__day__header">' + \
translate['Mon'] + '</th>\n' translate[d] + '</th>\n'
calendarStr += ' <th scope="col" class="calendar__day__header">' + \
translate['Tue'] + '</th>\n'
calendarStr += ' <th scope="col" class="calendar__day__header">' + \
translate['Wed'] + '</th>\n'
calendarStr += ' <th scope="col" class="calendar__day__header">' + \
translate['Thu'] + '</th>\n'
calendarStr += ' <th scope="col" class="calendar__day__header">' + \
translate['Fri'] + '</th>\n'
calendarStr += ' <th scope="col" class="calendar__day__header">' + \
translate['Sat'] + '</th>\n'
calendarStr += '</tr>\n' calendarStr += '</tr>\n'
calendarStr += '</thead>\n' calendarStr += '</thead>\n'
calendarStr += '<tbody>\n' calendarStr += '<tbody>\n'