X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=templates%2Fcalendar.html;h=11ac2a8816800eb0c11516610fe9e71eecda4027;hb=344d6c234e50953b36ac9fed2cfce8d4ba64a5b3;hp=eae103d9929ccc061b6eff1d296ecf2767325e81;hpb=12be63c6ef58282cb6b7d5b7bc2eabe8946a1bfc;p=plomtask diff --git a/templates/calendar.html b/templates/calendar.html index eae103d..11ac2a8 100644 --- a/templates/calendar.html +++ b/templates/calendar.html @@ -1,27 +1,48 @@ -{% extends 'base.html' %} +{% extends '_base.html' %} + + {% block css %} tr.week_row td { - height: 0.1em; + height: 0.3em; background-color: black; padding: 0; margin: 0; + border-top: 0.2em solid white; } tr.month_row td { - border: 0.1em solid black; - text-align: center; + border-top: 0.2em solid white; + color: white; + background-color: #555555; +} +table { + width: 100%; +} +tr.day_row td { + background-color: #cccccc; + border-top: 0.2em solid white; } td.day_name { padding-right: 0.5em; } +td.today { + font-weight: bold; +} +span.total_effort { + white-space: pre; +} {% endblock %} {% block content %} +

calendar

+ +

basic view

+
-from -to +from +to
@@ -29,21 +50,28 @@ to {% if day.first_of_month %} - + {% endif %} {% if day.weekday == "Monday" %} - + {% endif %} + + + + +{% for todo in day.calendarized_todos %} - - - + +{% endfor %} {% endfor %}
{{ day.month_name }}{{ day.month_name }}
+{{day.weekday|truncate(2,True,'',0)}} {% if day.date == today %} {% endif %}{{day.date}} +[{{ '{:5.1f}'.format(day.total_effort) }}] +{{day.comment|e}}
{{day.weekday|truncate(2,True,'',0)}}{{day.date}}{{day.comment|e}}[{% if todo.is_done %}X{% else %} {% endif %}] {{todo.title_then|e}}{% if todo.comment %} · {{todo.comment|e}}{% endif %}