{% extends 'base.html' %} {% block css %} td.checkbox { text-align: center; } td { vertical-align: middle; } td button { padding: 0em; } th.centered { text-align: center; } ul { padding-left: 1.5em; margin: 0; } details > summary.todo { list-style-type: ' '; } details > summary.has_dependers { list-style-type: '[+]:'; } details[open] > summary.has_dependers { list-style-type: '[▼]:'; } details > summary.has_deps::after { content: ':[+]'; } details[open] > summary.has_deps::after { content: ':[▼]'; } table.undone_todos tr.deps_undone { background-color: #cccccc; } details.adoptables { margin-bottom: 1em; } details.adoptables summary span { background-color: #cccccc; } table.undone_todos tr td { border-bottom: 1px dotted black; } td.left { text-align: left; } td.unbreakable { white-space: nowrap; } {% endblock %} {% macro todo_title_expandable(todo, show_deps_doneness, ignore=0) %} {% if todo.has_dependers or todo.has_deps %}
{% else %}      {% endif %} {{todo.title|e}} {% if todo.has_dependers or todo.has_deps %} {% if todo.has_dependers %} dependers: {% endif %} {% if todo.has_deps %} depends on: {% endif %}
{% endif %} {% endmacro %} {% macro todo_title_as_tree_node(todo, indent) %} {% for i in range(indent-1) %}   {% endfor %} {% if indent>0 %} +{% endif %} {% if todo.been_observed %}({% endif %}{{todo.title}}{% if todo.been_observed %}){% endif %} {% endmacro %} {% macro draw_undone_todo_row(todo, title_drawer, indent_or_doneness) %} {% if todo.been_observed %} {{ title_drawer(todo, indent_or_doneness ) }} {% else %} {{ title_drawer(todo, indent_or_doneness) }} {% endif %} {% endmacro %} {% macro draw_done_todo_row(todo, title_drawer, indent) %} {{ '{:4.1f}'.format(todo.effort_at_selected_date) }} {{ '{:4.1f}'.format(todo.effort_at_selected_date + todo.dep_efforts) }} {{ title_drawer(todo, indent) }} {{ todo.comment }} {% endmacro %} {% macro draw_todo_rows(todos, is_tree_shaped, todo_row_drawer, indent, show_deps_doneness=false) %} {% for todo in todos %} {% if is_tree_shaped %} {{ todo_row_drawer(todo, todo_title_as_tree_node, indent) }} {% if not todo.been_observed and todo.deps %} {{ draw_todo_rows(todo.deps, is_tree_shaped, todo_row_drawer, indent+1) }} {% endif %} {% else %} {{ todo_row_drawer(todo, todo_title_expandable, show_deps_doneness) }} {% endif %} {{ todo.observe() }} {% endfor %} {% endmacro %} {% block content %}

day todos

{% include 'tagfilters.html' %}

| prev | {{day.date}} | next | comment: | show as {% if is_tree_shaped %}flat|tree{% else %}flat|tree{% endif %}

undone

task quick-add: {{ macros.parenthood_selector(parenthood) }}

{{ macros.datalist_tasks(all_tasks, with_weight=true) }} {% if adoptable_past_todos %}
there are adoptable/unfinished past todos ({{adoptable_past_todos|count}}) {% endfor %}
adopt?datetitlecomment
{{todo.earliest_date}} {{todo.title|e}} {{todo.comment|e}}
{% endif %} {% if undone_todos %} {{ macros.sort_head(undone_sort, "sort_done", "done", "undone_sort") }} {{ macros.sort_head(undone_sort, "default_effort", "effort", "undone_sort") }} {{ macros.sort_head(undone_sort, "importance", "importance", "undone_sort") }} {{ macros.sort_head(undone_sort, "title", "todo", "undone_sort") }} {{ draw_todo_rows(undone_todos, is_tree_shaped, draw_undone_todo_row, 0, show_deps_doneness=true) }} {% endif %}
comment
{% if done_todos %}

done

{{ macros.sort_head(done_sort, "effort_at_selected_date", "single
effort", "done_sort") }} {{ macros.sort_head(done_sort, "family_effort", "family
effort", "done_sort") }} {{ macros.sort_head(done_sort, "title", "todo", "done_sort") }} {{ draw_todo_rows(done_todos, is_tree_shaped, draw_done_todo_row, 0) }}
comment
{% endif %} {% include 'watch_form.html' %} {% endblock %}