X-Git-Url: https://plomlompom.com/repos/?p=misc;a=blobdiff_plain;f=todo_templates%2Ftasks.html;fp=todo_templates%2Ftasks.html;h=7943b8231eb233630ac3871f0687186960ba8a89;hp=7d245dc9aba46139f8889c61eb6895eb988de9e1;hb=13a15b95ade73f4455db648b70e1de784c515039;hpb=8822ee7e3069193162469438bb54ee4629e1ae19 diff --git a/todo_templates/tasks.html b/todo_templates/tasks.html index 7d245dc..7943b82 100644 --- a/todo_templates/tasks.html +++ b/todo_templates/tasks.html @@ -1,12 +1,13 @@ {% extends 'base.html' %} {% block css %} table.alternating tr:nth-child(even) { - background-color: #e2e2e2; + background-color: #cccccc; } table.alternating tr:nth-child(odd) { background-color: #ffffff; } td.number { text-align: right; } +tr.expanded { color: #888888; } {% endblock %} {% block content %}
@@ -14,14 +15,35 @@ td.number { text-align: right; }
+ {% for uuid, t in db.tasks.items() | sort(attribute='1.title') %} {% if t.visible %} + - + + + + +{% if uuid == expand_uuid %} +{% for uuid, t in expanded_tasks.items() %} + + + + +{% endfor %} +{% endif %} + {% endif %} {% endfor %} +
default
effort
tasktags
{{ t.default_effort }}{{ t.title|e }} +{% if uuid == expand_uuid %} +[-] +{% elif t.links|count > 0 %} +[+] +{% endif %} +{{ t.title|e }}{% for tag in t.tags | sort %}{{ tag }} {% endfor %}
{{ t.default_effort }}  [+] {{ t.title|e }} {% for tag in t.tags | sort %}{{ tag }} {% endfor %}
{% endblock %}