diff options
-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> |