main
Bob Mottram 2024-07-16 11:06:35 +01:00
parent 47addccfa2
commit 1ca9c4c303
2 changed files with 4 additions and 9 deletions

View File

@ -575,6 +575,7 @@ def html_calendar(person_cache: {}, translate: {},
if curr_date.month == month_number: if curr_date.month == month_number:
if day_of_month == curr_date.day: if day_of_month == curr_date.day:
is_today = True is_today = True
if events.get(str(day_of_month)): if events.get(str(day_of_month)):
url = cal_actor + '/calendar?year=' + \ url = cal_actor + '/calendar?year=' + \
str(year) + '?month=' + \ str(year) + '?month=' + \
@ -597,13 +598,11 @@ def html_calendar(person_cache: {}, translate: {},
if not is_today: if not is_today:
calendar_str += \ calendar_str += \
' <td class="calendar__day__cell" ' + \ ' <td class="calendar__day__cell" ' + \
'data-event="">' + \ 'data-event="">' + day_link + '</td>\n'
day_link + '</td>\n'
else: else:
calendar_str += \ calendar_str += \
' <td class="calendar__day__cell" ' + \ ' <td class="calendar__day__cell" ' + \
'data-today-event="">' + \ 'data-today-event="">' + day_link + '</td>\n'
day_link + '</td>\n'
else: else:
# No events today # No events today
if not is_today: if not is_today:

View File

@ -264,11 +264,7 @@ def get_left_column_content(base_dir: str, nickname: str, domain_full: str,
words = line_str.split(' ') words = line_str.split(' ')
# get the link # get the link
for word in words: for word in words:
if word == '#': if word in ('#', '*', '=>'):
continue
if word == '*':
continue
if word == '=>':
continue continue
if '://' in word: if '://' in word:
link_str = word link_str = word