blob: 676ab8ffa6321e662a7e2e7bf7118415bb3feef1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<div class="calendar-table">
{%- for month in months[:2] %}
<h2>{{ month.date.strftime('%B %Y').decode('utf-8') }}</h2>
<table class="table table-striped">
<tr>
<th>Montag</th>
<th>Dienstag</th>
<th>Mittwoch</th>
<th>Donnerstag</th>
<th>Freitag</th>
<th>Samstag</th>
<th>Sonntag</th>
</tr>
{%- for week in month.weeks %}
<tr>
{%- for i in range(week[0].weekday) %}
<td></td>
{%- endfor %}
{%- for day in week %}
<td class="tabcal-cell {% if day.today %}tabcal-today{% endif %}">
<p class="tabcal-day">{{ day.day }}</span>
{%- if day.events %}
<ul>
{%- for event in day.events %}
<li><a href="#event-{{ event.id }}">{{ event.name }}</a></li>
{%- endfor %}
</ul>
{%- endif %}
</td>
{%- endfor %}
</tr>
{%- endfor %}
</table>
{%- endfor %}
</div>
|