summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/tabcalendar.j211
1 files changed, 6 insertions, 5 deletions
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>