home
·
contact
·
privacy
projects
/
misc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix.
[misc]
/
todo_templates
/
tasks.html
diff --git
a/todo_templates/tasks.html
b/todo_templates/tasks.html
index a125985d9df32c85d338a327f0f1d00985531d37..cd5ef0ff7c7a69247ae415b3d9cf24bdfe64af81 100644
(file)
--- a/
todo_templates/tasks.html
+++ b/
todo_templates/tasks.html
@@
-1,4
+1,5
@@
{% extends 'base.html' %}
{% extends 'base.html' %}
+
{% block css %}
table.alternating tr:nth-child(even) {
background-color: #cccccc;
{% block css %}
table.alternating tr:nth-child(even) {
background-color: #cccccc;
@@
-6,44
+7,41
@@
table.alternating tr:nth-child(even) {
table.alternating tr:nth-child(odd) {
background-color: #ffffff;
}
table.alternating tr:nth-child(odd) {
background-color: #ffffff;
}
-td.number { text-align: right; }
-tr.expanded { color: #888888; }
{% endblock %}
{% endblock %}
+
{% block content %}
{% block content %}
+<h3>review tasks</h3>
+
<form action="tasks" method="POST">
{% include 'tagfilters.html' %}
<form action="tasks" method="POST">
{% include 'tagfilters.html' %}
+<br />
+match: <input name="search" value="{{search|e}}" />
+<input id="filter_button" type="submit" name="filter" value="match" />
</form>
</form>
-<table class="alternating">
-<tr><th>default<br />effort</th><th>task</th><th>tags</th></tr>
-{% for uuid, t in db.tasks.items() | sort(attribute='1.title.now') %}
+<table class="alternating">
+<tr>
+{{ macros.sort_head(sort, "default_effort", "effort") }}
+{{ macros.sort_head(sort, "weight", "weight") }}
+{{ macros.sort_head(sort, "title", "task") }}
+<th>tags</th>
+</tr>
+{% for t in tasks %}
{% if t.visible %}
{% if t.visible %}
-
<tr>
<tr>
-<td class="number">{{ t.default_effort.now }}</a></td>
+<td class="number">
+{{ '{:5.1f}'.format(t.default_effort.now) }}
+</td>
+<td class="number">
+{{ '{:5.1f}'.format(t.subtask_weight) }}
+</td>
<td>
<td>
-{% if uuid == expand_uuid %}
-<a href="tasks">[-]</a>
-{% elif t.subtasks|count > 0 %}
-<a href="tasks?expand_uuid={{uuid}}">[+]</a>
-{% endif %}
-<a href="task?id={{ uuid }}" />{{ t.title.now|e }}</a></td>
+<a href="task?id={{ t.id_ }}" />{{ t.title.now|e }}</a></td>
<td>{% for tag in t.tags.now | sort %}<a href="tasks?and_tag={{tag|e}}">{{ tag }}</a> {% endfor %}</td>
</tr>
<td>{% for tag in t.tags.now | sort %}<a href="tasks?and_tag={{tag|e}}">{{ tag }}</a> {% endfor %}</td>
</tr>
-
-{% if uuid == expand_uuid %}
-{% for uuid, t in expanded_tasks.items() %}
-<tr class="expanded">
-<td class="number">{{ t.default_effort }}</a></td>
-<td> [+] <a href="task?id={{ uuid }}" />{{ t.title.now|e }}</a></td>
-<td>{% for tag in t.tags.now | sort %}<a href="tasks?and_tag={{tag|e}}">{{ tag }}</a> {% endfor %}</td>
-</tr>
-{% endfor %}
-{% endif %}
-
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
-
</table>
</table>
+
{% endblock %}
{% endblock %}