X-Git-Url: https://plomlompom.com/repos/?p=misc;a=blobdiff_plain;f=todo_templates%2Fcalendar.html;fp=todo_templates%2Fcalendar.html;h=8f0aa8e52bb598cfcdeb20bb41593feda30503a4;hp=0000000000000000000000000000000000000000;hb=53b84307929582af2aaeac2247cc57db4a7bedf4;hpb=bd32647c67dd9a4979a39efaf31bfe63c82c72d0 diff --git a/todo_templates/calendar.html b/todo_templates/calendar.html new file mode 100644 index 0000000..8f0aa8e --- /dev/null +++ b/todo_templates/calendar.html @@ -0,0 +1,27 @@ +{% extends 'base.html' %} +{% block css %} +tr.week_row td { height: 0.1em; background-color: black; } +tr.day_row td { background-color: #f2f2f2 } +td.checkbox { width: 0.1em; height: 0.1em; padding: 0em; text-align: center; } +{% endblock %} +{% block content %} +
+

+from: +to: + +

+ +{% for date, day in days.items() | sort() %} +{% if day.weekday == 'Mo' %}{% endif %} + +{% for task, todo in day.todos.items() | sort(attribute='1.title', reverse=True) %} +{% if todo.visible %} + +{% endif %} +{% endfor %} +{% endfor %} +
{{ day.weekday }} {{ date }} |{{ '%04.1f' % day.todos_sum|round(2) }}| {{ day.comment|e }}
{% if todo.done %}✓{% else %}  {% endif %}{%if "cancelled" in todo.tags%}{% endif %}{% if "deadline" in todo.tags %}DEADLINE: {% endif %}{{ todo.title|e }}{%if "cancelled" in todo.tags%}{% endif %}{{ todo.comment|e }}
+
+{% endblock %} +