X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=templates%2Fcalendar.html;h=699caabdd05b687a262be37ea32ac1da7ca3c1bc;hb=214aeb0f2e29712518dc776b0713bcdbb8945a2f;hp=220e9bb0f8ced2fc07cba917c3256d1b1fa82c2a;hpb=47108bf733ec32c54710e30b50a71084a5c396cd;p=plomtask diff --git a/templates/calendar.html b/templates/calendar.html index 220e9bb..699caab 100644 --- a/templates/calendar.html +++ b/templates/calendar.html @@ -4,18 +4,30 @@ {% 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; +} {% endblock %} @@ -23,6 +35,8 @@ td.day_name { {% block content %}

calendar

+

basic view

+
from to @@ -33,21 +47,25 @@ to {% if day.first_of_month %} -{{ day.month_name }} +{{ day.month_name }} {% endif %} {% if day.weekday == "Monday" %} - + {% endif %} + +{{day.weekday|truncate(2,True,'',0)}} {% if day.date == today %} {% endif %}{{day.date}} {{day.comment|e}} + + +{% for todo in day.calendarized_todos %} -{{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 %} +{% endfor %} {% endfor %}