home · contact · privacy
Improve accounting scripts.
[misc] / todo_templates / tasks.html
1 {% extends 'base.html' %}
2 {% block css %}
3 table.alternating tr:nth-child(even) {
4     background-color: #e2e2e2;
5 }
6 table.alternating tr:nth-child(odd) {
7     background-color: #ffffff;
8 }
9 td.number { text-align: right; }
10 {% endblock %}
11 {% block content %}
12 <form action="{{action|e}}" method="POST">
13 {% include 'tagfilters.html' %}
14 </form>
15 <table class="alternating">
16 <tr><th>default<br />effort</th><th>task</th><th>tags</th></tr>
17 {% for uuid, t in db.tasks.items() | sort(attribute='1.title') %}
18 {% if t.visible %}
19 <tr>
20 <td class="number">{{ t.default_effort }}</a></td>
21 <td><a href="{{db.prefix}}/task?id={{ uuid }}" />{{ t.title|e }}</a></td>
22 <td>{% for tag in t.tags | sort %}<a href="{{db.prefix}}/tasks?t_and={{tag|e}}">{{ tag }}</a> {% endfor %}</td>
23 {% endif %}
24 {% endfor %}
25 </table>
26 {% endblock %}
27