X-Git-Url: https://plomlompom.com/repos/%7Broute%7D?a=blobdiff_plain;f=templates%2Fday.html;h=6d927fdb1c09ab1f2d1fc1e9fa48a0bfef814b20;hb=5ff672be7e421fbbde8132a66ebb9b734d149a69;hp=efa1c9bb1e78fc5ea455c5a678b4727fb22efdd3;hpb=f19823e9e77ae0017022dbfe63f66d2b065ba33a;p=plomtask diff --git a/templates/day.html b/templates/day.html index efa1c9b..6d927fd 100644 --- a/templates/day.html +++ b/templates/day.html @@ -1,88 +1,222 @@ -{% extends 'base.html' %} +{% extends '_base.html' %} +{% import '_macros.html' as macros %} -{% macro show_node(node, indent) %} -{% if node.is_todo %} -{% for i in range(indent) %} {% endfor %} + -{% if node.seen %}({% else %}{% endif %}{{node.item.process.title.newest|e}}{% if node.seen %}){% else %}{% endif %} -{% else %} -{% for i in range(indent) %} {% endfor %} + -{% if node.seen %}({% else %}{% endif %}{{node.item.title.newest|e}}{% if node.seen %}){% else %}{% endif %} + +{% block css %} +table { + border-collapse: collapse; +} +th { + border: 1px solid black; +} +td.cond_line_0, td.cond_line_1, td.cond_line_2 { + padding: 0; + border-top: 1px solid white; +} +td.cond_line_0 { + background-color: #bfbfbf; +} +td.cond_line_1 { + background-color: #dfdfdf; +} +td.cond_line_2 { + 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.ablers { + width: 50em; +} +{% endblock %} + + + +{% macro show_node_undone(node, indent) %} +{% if not node.todo.is_done %} +