kobo-wall-calendar/templates/index.html

55 lines
1.5 KiB
HTML
Raw Permalink Normal View History

2023-09-17 16:06:20 +00:00
<!DOCTYPE HTML>
<html>
<head>
2023-09-17 20:35:27 +00:00
<title>{{ header }}</title>
2023-09-17 16:06:20 +00:00
<link href="static/style.css" rel="stylesheet">
2023-09-17 20:35:27 +00:00
<!-- TODO:
2023-09-17 16:06:20 +00:00
<meta http-equiv="refresh" content="60">
2023-09-17 20:35:27 +00:00
-->
2023-09-17 16:06:20 +00:00
</head>
<body>
2023-09-17 20:35:27 +00:00
<h1 class="month-header">{{ header }}</h1>
2023-09-17 16:06:20 +00:00
<table class="calendar-grid">
<thead>
<tr class="week-row">
<td class="week-counter"></td>
<td class="calendar-weekday-header">Monday</td>
<td class="calendar-weekday-header">Tuesday</td>
<td class="calendar-weekday-header">Wednesday</td>
<td class="calendar-weekday-header">Thursday</td>
<td class="calendar-weekday-header">Friday</td>
<td class="calendar-weekday-header">Saturday</td>
<td class="calendar-weekday-header">Sunday</td>
</tr>
</thead>
<tbody>
% for day_info in days:
2023-09-17 20:35:27 +00:00
% if day_info['date'].isoweekday() == 1:
2023-09-17 16:06:20 +00:00
</tr><tr class="week-row">
<td class="week-counter
">W{{ day_info['week_of_year'] }}</td>
% end
<td class="calendar-day
% if day_info['is_weekend']:
weekend-day
% end
2023-09-17 20:35:27 +00:00
% if day_info['days_from_now'] < 0:
2023-09-17 16:06:20 +00:00
crossed-out
% end
"><div class="day-num
2023-09-17 20:35:27 +00:00
% if day_info['days_from_now'] == 0:
2023-09-17 16:06:20 +00:00
today
% end
2023-09-17 20:35:27 +00:00
">{{ day_info['date'].day }}</div>
2023-09-17 16:06:20 +00:00
% for event_text in day_info['events']:
<div class="event">{{ event_text }}</div>
% end
</td>
% end
</tr>
</tbody>
</table>
</body>
</html>