X-Git-Url: https://plomlompom.com/repos/?p=misc;a=blobdiff_plain;f=todo_templates%2Fcalendar.html;fp=todo_templates%2Fcalendar.html;h=343019aa6387b8254a2bd3fce7ef39ec390bfec4;hp=bc77ccdb0669aed74dd67be1fa6ff7828301958a;hb=2ad9f7785539c0cd9f119d1f22b8057fab348114;hpb=59056f396c4761f9cd7ffbc569e3ddf8994d5e83 diff --git a/todo_templates/calendar.html b/todo_templates/calendar.html index bc77ccd..343019a 100644 --- a/todo_templates/calendar.html +++ b/todo_templates/calendar.html @@ -1,13 +1,18 @@ {% extends 'base.html' %} + + {% block css %} #filter { margin-bottom: 1em; } tr.month_row td { color: white; background-color: #555555; text-align: center; } tr.week_row td { height: 0.1em; background-color: black; } tr.day_row td { background-color: #cccccc; } span.selected_date { font-weight: bold; } +span.todos_sum { white-space: pre; } {% endblock %} + + {% block content %}

calendar

@@ -36,9 +41,9 @@ to: -{{ day.weekday }} {{ date }} +{{ day.weekday }} {{ date }} -|{{ '{:5.1f}'.format(day.todos_sum)}}| +|{{ '{:5.1f}'.format(day.todos_sum)}}| {{ day.comment|e }} @@ -48,7 +53,7 @@ to: {% if "cancelled" in todo.tags %}{% endif %} -[{% if todo.done and not "cancelled" in todo.tags %}✓{% else %} {% endif %}] +{{ macros.doneness_string(todo, true) }} {% if "deadline" in todo.tags %}DEADLINE: {% endif %} {{ todo.title|e }}