home · contact · privacy
Improve todo accounting.
[misc] / todo_templates / tasks.html
diff --git a/todo_templates/tasks.html b/todo_templates/tasks.html
new file mode 100644 (file)
index 0000000..34976eb
--- /dev/null
@@ -0,0 +1,27 @@
+{% extends 'base.html' %}
+{% block css %}
+table.alternating tr:nth-child(even) {
+    background-color: #f2f2f2;
+}
+table.alternating tr:nth-child(odd) {
+    background-color: #ffffff;
+}
+td.number { text-align: right; }
+{% endblock %}
+{% block content %}
+<form action="{{action|e}}" method="POST">
+{% include 'tagfilters.html' %}
+</form>
+<table class="alternating">
+<tr><th>default<br />weight</th><th>task</th><th>tags</th></tr>
+{% for uuid, t in db.tasks.items() | sort(attribute='1.title') %}
+{% if t.visible %}
+<tr>
+<td class="number">{{ t.default_weight }}</a></td>
+<td><a href="{{db.prefix}}/task?id={{ uuid }}" />{{ t.title|e }}</a></td>
+<td>{% for tag in t.tags | sort %}<a href="{{db.prefix}}/tasks?t_and={{tag|e}}">{{ tag }}</a> {% endfor %}</td>
+{% endif %}
+{% endfor %}
+</table>
+{% endblock %}
+