1 {% extends 'base.html' %}
3 table.alternating tr:nth-child(even) {
4 background-color: #cccccc;
6 table.alternating tr:nth-child(odd) {
7 background-color: #ffffff;
9 td.number { text-align: right; }
10 tr.expanded { color: #888888; }
13 <form action="tasks" method="POST">
14 {% include 'tagfilters.html' %}
16 <table class="alternating">
17 <tr><th>default<br />effort</th><th>task</th><th>tags</th></tr>
19 {% for uuid, t in db.tasks.items() | sort(attribute='1.title.now') %}
23 <td class="number">{{ t.default_effort.now }}</a></td>
25 {% if uuid == expand_uuid %}
26 <a href="tasks">[-]</a>
27 {% elif t.subtasks|count > 0 %}
28 <a href="tasks?expand_uuid={{uuid}}">[+]</a>
30 <a href="task?id={{ uuid }}" />{{ t.title.now|e }}</a></td>
31 <td>{% for tag in t.tags.now | sort %}<a href="tasks?and_tag={{tag|e}}">{{ tag }}</a> {% endfor %}</td>
34 {% if uuid == expand_uuid %}
35 {% for uuid, t in expanded_tasks.items() %}
37 <td class="number">{{ t.default_effort }}</a></td>
38 <td> [+] <a href="task?id={{ uuid }}" />{{ t.title.now|e }}</a></td>
39 <td>{% for tag in t.tags.now | sort %}<a href="tasks?and_tag={{tag|e}}">{{ tag }}</a> {% endfor %}</td>