X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/form?a=blobdiff_plain;f=templates%2Fcalendar.html;h=d7ec545bf3eb075b19cdce76d1fd7f9a7a9cf55d;hb=d916781d66c1aaf4e3a04580153dce61744d5729;hp=715131af6de410b266fa71c0f29743cebeb74f19;hpb=f8118b1ed8615870b490566cf649d191f5877932;p=plomtask diff --git a/templates/calendar.html b/templates/calendar.html index 715131a..d7ec545 100644 --- a/templates/calendar.html +++ b/templates/calendar.html @@ -1,13 +1,31 @@ -{% extends 'base.html' %} +{% extends '_base.html' %} + + {% block css %} -tr.week_row td { height: 0.1em; background-color: black; padding: 0; margin: 0; } -tr.month_row td { border: 0.1em solid black; text-align: center; } +tr.week_row td { + height: 0.1em; + background-color: black; + padding: 0; + margin: 0; +} +tr.month_row td { + border: 0.1em solid black; + text-align: center; +} +td.day_name { + padding-right: 0.5em; +} +td.today { + font-weight: bold; +} {% endblock %} {% block content %} +

calendar

+
from to @@ -29,11 +47,19 @@ to {% endif %} -{{day.weekday|truncate(2,True,'',0)}} -{{day.date}} +{{day.weekday|truncate(2,True,'',0)}} +{{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}} + +{% endfor %} + {% endfor %} {% endblock %}