diff --git a/tabellio/agenda/event.py b/tabellio/agenda/event.py index 95d561e..72ed8f6 100644 --- a/tabellio/agenda/event.py +++ b/tabellio/agenda/event.py @@ -102,6 +102,11 @@ class Event(BaseEvent): def klass(self): return 'generic-event' + def todayclass(self): + if self.start.timetuple()[:3] == datetime.datetime.today().timetuple()[:3]: + return 'today' + return '' + class EventBaseView: def next_event_url(self, portal_type=None): # do not go more than 100 days in the future diff --git a/tabellio/agenda/folder_templates/view.pt b/tabellio/agenda/folder_templates/view.pt index 065014f..2f1cb74 100644 --- a/tabellio/agenda/folder_templates/view.pt +++ b/tabellio/agenda/folder_templates/view.pt @@ -205,7 +205,7 @@ jq('#tabellio-agenda tbody a').click(