2024-12-16

This commit is contained in:
2024-12-16 16:45:24 -06:00
parent 82d0389db4
commit d8d9e3bbab
4 changed files with 57 additions and 47 deletions

View File

@@ -1,12 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<title>Dashboard ({{today.strftime('%-m/%-d, %-H:%M')}})</title>
<!-- <link rel="stylesheet" href="style.css"> -->
<style>{% include "style.css"%}</style>
<meta name="viewport" content="width=600, height=800" />
</head>
<body>
{% extends "base.html" %}
{% block title %}Dashboard ({{today.strftime('%-m/%-d, %-H:%M')}}){% endblock %}
{% block content %}
<div class="dashboard">
<div style="height:1em"></div>
<div class="panel top">
@@ -22,41 +16,16 @@
</div>
<div class="panel bottom week">
<div class="row">
{% for day, events in days [:4] %}
<div class="day">
<div id="dotw-1" class="day-title{% if day == today.date()%} current-day{% endif %}">
{{ day.strftime('%a %-d') }}
</div>
{% for event in events %}
<div class="event">
{{ event.summary }}<br>
{% if not event.is_all_day %}
<span class="daterange">{{ event.range_str }}</span>
{% endif %}
</div>
{% endfor %}
</div>
{% endfor %}
{% for day, events in days [:4] %}
{% include "includes/day.html" %}
{% endfor %}
</div>
<div class="row">
{% for day, events in days [4:] %}
<div class="day">
<div id="dotw-1" class="day-title{% if day == today.date()%} current-day{% endif %}">
{{ day.strftime('%a %-d') }}
</div>
{% for event in events %}
<div class="event">
{{ event.summary }}<br>
{% if not event.is_all_day %}
<span class="daterange">{{ event.range_str }}</span>
{% endif %}
</div>
{% endfor %}
</div>
{% include "includes/day.html" %}
{% endfor %}
</div>
</div>
</div>
<div style="height:1em;text-align: center;"><code>{{extra_debug}} </code><code>{{ today.strftime('%c') }}</code></div>
<div><code>{{extra_debug}} </code><code>{{ today.strftime('%c') }}</code></div>
</div>
</body>
</html>
{%endblock%}