X-Git-Url: https://plomlompom.com/repos/unset_cookie?a=blobdiff_plain;f=templates%2Fday.html;h=3b2e96a9114fb819a03b9e79d05489b4ad08cc91;hb=30aef71506f7d6215b04cddaba8fddba1788f883;hp=efa1c9bb1e78fc5ea455c5a678b4727fb22efdd3;hpb=f19823e9e77ae0017022dbfe63f66d2b065ba33a;p=plomtask diff --git a/templates/day.html b/templates/day.html index efa1c9b..3b2e96a 100644 --- a/templates/day.html +++ b/templates/day.html @@ -1,88 +1,236 @@ -{% 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 %} +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 %} +