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/static/git-logo.png?a=blobdiff_plain;ds=inline;f=templates%2Fday.html;h=3b2e96a9114fb819a03b9e79d05489b4ad08cc91;hb=48ed70167c50303f46309c5808f93f2ba169b34f;hp=5547f4534e94742600f0664aaece2b7cdc33afc3;hpb=bf8b491d50379772879f1cc9cbe6846fe50ce63b;p=plomtask diff --git a/templates/day.html b/templates/day.html index 5547f45..3b2e96a 100644 --- a/templates/day.html +++ b/templates/day.html @@ -1,7 +1,236 @@ -{% extends 'base.html' %} +{% extends '_base.html' %} +{% import '_macros.html' as macros %} + + + +{% block css %} +td, th, tr, table { + padding: 0; + margin: 0; +} +table { + border-collapse: collapse; +} +th { + border: 1px solid black; +} +td.cond_line_0 { + border-top: 1px solid white; + background-color: #bfbfbf; +} +td.cond_line_1 { + border-top: 1px solid white; + background-color: #dfdfdf; +} +td.cond_line_2 { + border-top: 1px solid white; + background-color: #fffff; +} +td.cond_line_corner { + max-width: 0px; + white-space: nowrap; + overflow: hidden; + text-overflow: clip; +} +td.todo_line { + border-bottom: 1px solid #bfbfbf; + height: 1.7em; +} +tr.inactive td.todo_line { + background-color: #bfbfbf; +} +tr.hidden_undone td, tr.hidden_undone a { + color: #9f9f9f; +} +td.left_border { + border-left: 1px solid black; +} +td.right_border { + border-right: 1px solid black; +} +input[type="text"] { + width: 98%; +} +input[name="day_comment"] { + width: 100em; +} +{% endblock %} + + + +{% macro show_node_undone(node, indent) %} +{% if not node.todo.is_done %} +