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="{{action|e}}" 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') %}
23 <td class="number">{{ t.default_effort }}</a></td>
25 {% if uuid == expand_uuid %}
26 <a href="{{db.prefix}}/tasks">[-]</a>
27 {% elif t.links|count > 0 %}
28 <a href="{{db.prefix}}/tasks?expand_uuid={{uuid}}">[+]</a>
30 <a href="{{db.prefix}}/task?id={{ uuid }}" />{{ t.title|e }}</a></td>
31 <td>{% for tag in t.tags | sort %}<a href="{{db.prefix}}/tasks?t_and={{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="{{db.prefix}}/task?id={{ uuid }}" />{{ t.title|e }}</a></td>
39 <td>{% for tag in t.tags | sort %}<a href="{{db.prefix}}/tasks?t_and={{tag|e}}">{{ tag }}</a> {% endfor %}</td>