summaryrefslogtreecommitdiff
path: root/p/tools/todo.text.tt
diff options
context:
space:
mode:
Diffstat (limited to 'p/tools/todo.text.tt')
-rw-r--r--p/tools/todo.text.tt17
1 files changed, 8 insertions, 9 deletions
diff --git a/p/tools/todo.text.tt b/p/tools/todo.text.tt
index 9982766..77207e0 100644
--- a/p/tools/todo.text.tt
+++ b/p/tools/todo.text.tt
@@ -1,20 +1,19 @@
[% BLOCK task %]
-$indent${s.state} [%+
-"(${s.owners.join (', ')}) " IF s.owners.size && owner
+$indent${t.state} [%+
+"[${t.deadline}] " IF t.deadline ;
+"(${t.owners.join (', ')}) " IF t.owners.size && owner
%]
-${s.text}
+${t.text}
[%+ END %]
[% BLOCK tasks %]
[% FOREACH t = tasks %]
- [% IF t.value.size || keep %]
- [% IF t.key %]
+ [% IF t.key %]
$indent${t.key}
[%+ %]
- [% INCLUDE tasks tasks = t.value indent = "$indent " %]
- [% ELSE %]
- [% PROCESS task FOREACH s = t.value %]
- [% END %]
+ [% INCLUDE tasks tasks = t.value indent = "$indent " %]
+ [% ELSE %]
+ [% PROCESS task FOREACH t = t.value %]
[% END %]
[% END %]
[% END %]