diff options
author | Christian Franke <nobody@nowhere.ws> | 2016-04-05 11:58:31 -0300 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2016-04-05 11:58:31 -0300 |
commit | 4c1491f2121633f74abef49c1d9b4df6912ac601 (patch) | |
tree | cbac8bfa77289bc3fb9ace343024a7822ffc606a | |
parent | 2222565e6bbe30ad7954dcdc328b533b98409ba3 (diff) |
Use ul for events in tabular calendar
-rw-r--r-- | public/css/sublab.calendar.css | 11 | ||||
-rw-r--r-- | template/tabcalendar.j2 | 11 |
2 files changed, 17 insertions, 5 deletions
diff --git a/public/css/sublab.calendar.css b/public/css/sublab.calendar.css index 246fb34..68ef616 100644 --- a/public/css/sublab.calendar.css +++ b/public/css/sublab.calendar.css @@ -40,3 +40,14 @@ margin: 2px 0 0 0; padding: 0.5em 0.2em 0.1em 0.7em; } + +.tabcal-cell { + font-size: 0.75em; + border-left: 1px solid #1c1e22 ! important; + border-right: 1px solid #1c1e22 ! important; + border-bottom: 1px solid #1c1e22 ! important; +} + +.tabcal-day { + text-align: right; +} diff --git a/template/tabcalendar.j2 b/template/tabcalendar.j2 index 84b08b6..095ba85 100644 --- a/template/tabcalendar.j2 +++ b/template/tabcalendar.j2 @@ -18,13 +18,14 @@ {%- endfor %} {%- for day in week %} <td class="tabcal-cell"> -<span class="tabcal-day">{{ day.day }}</span> +<p class="tabcal-day">{{ day.day }}</span> +{%- if day.events %} +<ul> {%- for event in day.events %} -<a href="#event-{{ event.id }}">{{ event.name }}</a> -{%- if not loop.last %} -<br/> -{%- endif %} +<li><a href="#event-{{ event.id }}">{{ event.name }}</a></li> {%- endfor %} +</ul> +{%- endif %} </td> {%- endfor %} </tr> |