Initial
This commit is contained in:
45
templates/index.html
Normal file
45
templates/index.html
Normal file
@@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
/* Für Wix: background auf transparent stellen */
|
||||
body { font-family: sans-serif; color: white; background: black; margin: 0; padding: 10px; }
|
||||
table { width: 100%; border-collapse: collapse; max-width: 500px; table-layout: fixed; }
|
||||
td { padding: 10px 5px; border-bottom: 1px solid #333; font-size: 14px; vertical-align: middle; }
|
||||
|
||||
/* Spalten-Definitionen */
|
||||
.col-wt { text-align: left; width: 45px; font-weight: bold; }
|
||||
.col-date { text-align: right; width: 55px; color: #aaa; }
|
||||
.col-time { text-align: right; width: 100px; }
|
||||
.col-closed { text-align: center; font-style: italic; opacity: 0.6; }
|
||||
|
||||
.remarks { margin-top: 30px; font-size: 13px; color: #ccc; border-top: 1px solid #444; padding-top: 15px; line-height: 1.6; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table>
|
||||
{% for event in events %}
|
||||
<tr>
|
||||
<td class="col-wt">{{ event.Wochentag }}.</td>
|
||||
<td class="col-date">{{ event.Datum.strftime('%d.%m.') }}</td>
|
||||
|
||||
{% if not event.Morgen and not event.Nachmittag %}
|
||||
<td colspan="2" class="col-closed">geschlossen</td>
|
||||
{% else %}
|
||||
<td class="col-time">{{ event.Morgen }}</td>
|
||||
<td class="col-time">{{ event.Nachmittag }}</td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
{% if remarks %}
|
||||
<div class="remarks">
|
||||
{% for r in remarks %}
|
||||
<div style="margin-bottom: 8px;">• {{ r }}</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user