home · contact · privacy
Improve accounting scripts.
[misc] / todo_templates / tasks.html
1 {% extends 'base.html' %}
2
3 {% block css %}
4 table.alternating tr:nth-child(even) {
5     background-color: #cccccc;
6 }
7 table.alternating tr:nth-child(odd) {
8     background-color: #ffffff;
9 }
10 {% endblock %}
11
12 {% block content %}
13 <h3>review tasks</h3>
14
15 <form action="tasks" method="POST">
16 {% include 'tagfilters.html' %}
17 <br />
18 match: <input name="search" value="{{search|e}}" />
19 <input id="filter_button" type="submit" name="filter" value="match" />
20 </form>
21
22 <table class="alternating">
23 <tr>
24 <th class="centered{% if sort=='default_effort' %} desc{% endif %}">
25 <a href="?sort=default_effort">effort</a>
26 </th>
27 <th {% if sort=='depth' %}class ="desc"{% endif %}>
28 <a href="?sort=depth">depth</a>
29 </th>
30 <th {% if sort=='title' %}class="desc"{% endif %}>
31 <a href="?sort=title">todo</a>
32 </th>
33 <th>tags</th>
34 </tr>
35 {% for t in tasks %}
36 {% if t.visible %}
37 <tr>
38 <td class="number">
39 {{ '{:5.1f}'.format(t.default_effort.now) }}
40 </td>
41 <td class="number">
42 {{ '{:5.1f}'.format(t.subtask_depth) }}
43 </td>
44 <td>
45 <a href="task?id={{ t.id_ }}" />{{ t.title.now|e }}</a></td>
46 <td>{% for tag in t.tags.now | sort %}<a href="tasks?and_tag={{tag|e}}">{{ tag }}</a> {% endfor %}</td>
47 </tr>
48 {% endif %}
49 {% endfor %}
50 </table>
51
52 {% endblock %}
53