X-Git-Url: https://plomlompom.com/repos/?p=misc;a=blobdiff_plain;f=todo_templates%2Fcalendar.html;fp=todo_templates%2Fcalendar.html;h=1bfb88347cc4a75e27614f1c621400de003e5819;hp=5d49b5abc488df8e4a83ef94544d408ddeb08b33;hb=13a15b95ade73f4455db648b70e1de784c515039;hpb=8822ee7e3069193162469438bb54ee4629e1ae19 diff --git a/todo_templates/calendar.html b/todo_templates/calendar.html index 5d49b5a..1bfb883 100644 --- a/todo_templates/calendar.html +++ b/todo_templates/calendar.html @@ -1,7 +1,8 @@ {% extends 'base.html' %} {% block css %} +tr td { background-color: white; } tr.week_row td { height: 0.1em; background-color: black; } -tr.day_row td { background-color: #f2f2f2 } +tr.day_row td { background-color: #cccccc } td.checkbox { width: 0.1em; height: 0.1em; padding: 0em; text-align: center; } {% endblock %} {% block content %} @@ -14,11 +15,13 @@ to: {% for date, day in days.items() | sort() %} {% if day.weekday == 'Mo' %}{% endif %} -{{ day.weekday }} {{ date }} |{{ '%04.1f' % day.todos_sum|round(2) }}| {{ day.comment|e }} -{% for task, todo in day.todos.items() | sort(attribute='1.title', reverse=True) %} +{{ day.weekday }} {{ date }} |{{ '%04.1f' % day.todos_sum|round(2) }}| {{ day.comment|e }} +{% for todo in day.linked_todos_as_list %} + {% if todo.visible %} -{% 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 }} +{% if todo.done and not "cancelled" in todo.tags%}✓{% 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 }} {% endif %} + {% endfor %} {% endfor %}