From: Christian Heller Date: Sun, 2 Jun 2024 21:00:54 +0000 (+0200) Subject: Mostly superficial template design improvements. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/tasks?a=commitdiff_plain;h=2337eb37f27fdc60e3cb000052f00218d815c49f;p=plomtask Mostly superficial template design improvements. --- diff --git a/templates/_base.html b/templates/_base.html index d192631..0e38465 100644 --- a/templates/_base.html +++ b/templates/_base.html @@ -19,6 +19,7 @@ div.btn-to-right { } td, th, tr, table { vertical-align: top; + margin-top: 1em; padding: 0; } {% block css %} diff --git a/templates/calendar.html b/templates/calendar.html index d7ec545..4674262 100644 --- a/templates/calendar.html +++ b/templates/calendar.html @@ -4,7 +4,7 @@ {% block css %} tr.week_row td { - height: 0.1em; + height: 0.3em; background-color: black; padding: 0; margin: 0; @@ -12,6 +12,11 @@ tr.week_row td { tr.month_row td { border: 0.1em solid black; text-align: center; + color: white; + background-color: #555555; +} +tr.day_row td { + background-color: #cccccc; } td.day_name { padding-right: 0.5em; @@ -36,27 +41,23 @@ to {% if day.first_of_month %} -{{ day.month_name }} +{{ day.month_name }} {% endif %} {% if day.weekday == "Monday" %} - + {% endif %} - -{{day.weekday|truncate(2,True,'',0)}} -{{day.date}} -{{day.comment|e}} + +{{day.weekday|truncate(2,True,'',0)}} {% if day.date == today %} {% endif %}{{day.date}} {{day.comment|e}} {% for todo in day.calendarized_todos %} -[{% if todo.is_done %}X{% else %} {% endif %}] -{{todo.title_then|e}} -{{todo.comment|e}} +[{% if todo.is_done %}X{% else %} {% endif %}] {{todo.title_then|e}}{% if todo.comment %} · {{todo.comment|e}}{% endif %} {% endfor %} diff --git a/templates/todo.html b/templates/todo.html index 80eb5c7..0d4773c 100644 --- a/templates/todo.html +++ b/templates/todo.html @@ -77,5 +77,9 @@ {{ macros.datalist_of_titles("condition_candidates", condition_candidates) }} -{{ macros.datalist_of_titles("todo_candidates", todo_candidates) }} + +{% for candidate in todo_candidates %} + +{% endfor %} + {% endblock %}