X-Git-Url: https://plomlompom.com/repos/?p=misc;a=blobdiff_plain;f=todo_templates%2Fcalendar.html;fp=todo_templates%2Fcalendar.html;h=bc77ccdb0669aed74dd67be1fa6ff7828301958a;hp=82a9ca2e487e16517ef127f7a41859aedede051f;hb=979de59ced9fe3fd3860d19288b42485d7f02346;hpb=76210b693b77e67bf8160a7fb869ae416309d333 diff --git a/todo_templates/calendar.html b/todo_templates/calendar.html index 82a9ca2..bc77ccd 100644 --- a/todo_templates/calendar.html +++ b/todo_templates/calendar.html @@ -1,30 +1,70 @@ {% extends 'base.html' %} + {% block css %} -tr td { background-color: white; } +#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 } -td.checkbox { width: 0.1em; height: 0.1em; padding: 0em; text-align: center; } +tr.day_row td { background-color: #cccccc; } +span.selected_date { font-weight: bold; } {% endblock %} + {% block content %} +

calendar

-

+ +

from: to: -

+
+ -{% for date, day in days.items() | sort() %} -{% if day.weekday == 'Mo' %}{% endif %} - -{% for todo in day.linked_todos_as_list %} +{% for date, day in days.items() %} -{% if todo.visible %} - +{% if day.month_title %} + + + +{% endif %} + +{% if day.weekday == 'Mo' %} + + + {% endif %} + + + + +{% for todo in day.linked_todos_as_list %} +{% if todo.visible %} + + + + +{% endif %} {% endfor %} + {% endfor %}
{{ day.weekday }} {{ date }} |{{ "%5.1f" |format(day.todos_sum)}}| {{ day.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 }}
{{ day.month_title }}
+ +{{ day.weekday }} {{ date }} + +|{{ '{:5.1f}'.format(day.todos_sum)}}| +{{ day.comment|e }} +
+{% if "cancelled" in todo.tags %}{% endif %} +[{% if todo.done and not "cancelled" in todo.tags %}✓{% else %} {% endif %}] + +{% if "deadline" in todo.tags %}DEADLINE: {% endif %} +{{ todo.title|e }} + +{%if "cancelled" in todo.tags%}{% endif %} + +{{ todo.comment|e }} +
+
{% endblock %}