home · contact · privacy
Improve todo accounting.
[misc] / todo_templates / calendar_export.html
diff --git a/todo_templates/calendar_export.html b/todo_templates/calendar_export.html
new file mode 100644 (file)
index 0000000..315b0a0
--- /dev/null
@@ -0,0 +1,31 @@
+{% import 'macros.html' as macros %}
+<html>
+<body>
+<table>
+{% for date, day in days.items() %}
+{% if day.month_title %}
+<tr><td colspan=3>### {{ day.month_title }} ###</td></tr>
+{% endif %}
+{% if day.visible_in_export %}
+<tr><td colspan=3># {{ date }} ({{ day.weekday }}) {{ day.comment|e }}</td></tr>
+{% for todo in day.linked_todos_as_list %}
+{% if todo.visible %}
+<tr>
+<td>
+{% if "cancelled" in todo.tags %}<s>{% endif %}
+{{ macros.doneness_string(todo, true) }}
+{% if "deadline" in todo.tags %}DEADLINE: {% endif %}
+{{ todo.title|e }}
+{%if "cancelled" in todo.tags%}</s>{% endif %}
+</td>
+<td>
+{{ todo.comment|e }}
+</td>
+</tr>
+{% endif %}
+{% endfor %}
+{% endif %}
+{% endfor %}
+</table>
+</body>
+</html>