home · contact · privacy
Add previously forgotten GET /calendar_txt template.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 12 Jul 2024 07:01:23 +0000 (09:01 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 12 Jul 2024 07:01:23 +0000 (09:01 +0200)
templates/calendar_txt.html [new file with mode: 0644]

diff --git a/templates/calendar_txt.html b/templates/calendar_txt.html
new file mode 100644 (file)
index 0000000..567ddd8
--- /dev/null
@@ -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 %}