summaryrefslogtreecommitdiff
path: root/p/tools/todo.html.tt
blob: 82951fced5244be6748ffe95e653601d20c13080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
 <head>
  <meta http-equiv="Content-Type" content="application/html+xml; charset=ISO-8859-1" />
  <title>ToDo</title>
  <link rel="stylesheet" type="text/css" href="todo.css" media="screen" title="Normal" />
 </head>
 <body>
  <ul>
[%+ PROCESS tasks tasks = tasks indent = '   ' %]
  </ul>
 </body>
</html>

[% BLOCK state %]
[%
IF s == '-' ;
  'opened' ;
ELSIF s == '+' ;
  'closed' ;
ELSIF s == '=' ;
  'running' ;
ELSIF s == 'x' ;
  'canceled' ;
ELSE ;
  'unknown' ;
END %]
[% END %]

[% BLOCK task %]
$indent<li class="[% PROCESS state s = t.state %]-task">[%
%]<p><span class="state">[% t.state +%]</span> [%+
%]<span class="text">[% t.text %]</span>
[% IF t.deadline
+%] <span class="deadline">[[% t.deadline %]]</span>[% END %]
[% IF t.owners.size
+%] <span class="owners">([% t.owners.join (', ') %])</span>[% END %]
</p></li>
[%+ END %]

[% BLOCK tasks %]
 [% FOREACH t = tasks %]
  [% IF t.key %]
$indent<li class="section"><p>[% t.key %]</p><ul>
[%+ INCLUDE tasks tasks = t.value indent = "$indent " %]
$indent</ul></li>
[%+ %]
  [% ELSE %]
   [% PROCESS task FOREACH t = t.value %]
  [% END %]
 [% END %]
[% END %]