# HG changeset patch # User Paul Boddie # Date 1425590852 -3600 # Node ID b7eb8d36aefa437a479413cb0fe9f7672488ff3b # Parent 78ee44adfe292a644ab4eb4ef7c8288df2a72ff1 Highlight the original period affected by a special/additional recurrence. diff -r 78ee44adfe29 -r b7eb8d36aefa htdocs/styles.css --- a/htdocs/styles.css Thu Mar 05 17:15:57 2015 +0100 +++ b/htdocs/styles.css Thu Mar 05 22:27:32 2015 +0100 @@ -97,6 +97,10 @@ font-size: inherit; } +.affected { + font-weight: bold; +} + .replaced { text-decoration: line-through; } diff -r 78ee44adfe29 -r b7eb8d36aefa imip_manager.py --- a/imip_manager.py Thu Mar 05 17:15:57 2015 +0100 +++ b/imip_manager.py Thu Mar 05 22:27:32 2015 +0100 @@ -1137,7 +1137,10 @@ for start, end in periods: start_utc = format_datetime(to_timezone(start, "UTC")) - css = recurrenceids and start_utc in recurrenceids and "replaced" or "" + css = " ".join([ + recurrenceids and start_utc in recurrenceids and "replaced" or "", + recurrenceid and start_utc == recurrenceid and "affected" or "" + ]) page.tr() page.td(self.format_datetime(start, "long"), class_=css)