From 8e4b4d5e104c761f3ed263954bbe8d1631bbf0d4 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Fri, 12 Jul 2024 09:01:23 +0200
Subject: [PATCH] Add previously forgotten GET /calendar_txt template.

---
 templates/calendar_txt.html | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 templates/calendar_txt.html

diff --git a/templates/calendar_txt.html b/templates/calendar_txt.html
new file mode 100644
index 0000000..567ddd8
--- /dev/null
+++ b/templates/calendar_txt.html
@@ -0,0 +1,20 @@
+{% extends '_base.html' %}
+
+{% block content %}
+<h3>calendar</h3>
+
+<p><a href="/calendar">normal view</a></p>
+
+<form action="calendar_txt" method="GET">
+from <input name="start" class="date" value="{{start}}" />
+to <input name="end" class="date" value="{{end}}" />
+<input type="submit" value="OK" />
+</form>
+<table>
+
+<pre>{% for day in days %}{% if day.weekday == "Monday" %}
+---{% endif %}{% if day.comment or day.calendarized_todos %}
+{{day.weekday|truncate(2,True,'',0)}} {{day.date}} {{day.comment|e}}{% endif %}{% if day.calendarized_todos%}{% for todo in day.calendarized_todos %}
+* {{todo.title_then|e}}{% if todo.comment %} / {{todo.comment|e}}{% endif %}{% endfor %}{% endif %}{% endfor %}
+</pre>
+{% endblock %}
-- 
2.30.2