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=4e835734c026fa1612e2ec18d4a9dfb1bd10ac29;hb=3bc56075efe4e4409824c7bd99a55593905e960e;hp=715131af6de410b266fa71c0f29743cebeb74f19;hpb=f8118b1ed8615870b490566cf649d191f5877932;p=plomtask diff --git a/templates/calendar.html b/templates/calendar.html index 715131a..4e83573 100644 --- a/templates/calendar.html +++ b/templates/calendar.html @@ -1,16 +1,45 @@ -{% 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.3em; + background-color: black; + padding: 0; + margin: 0; + border-top: 0.2em solid white; +} +tr.month_row td { + 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 %} {% block content %} +

calendar

+ +

basic view

+
-from -to +from +to
@@ -18,21 +47,25 @@ 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}} {{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 %}