summaryrefslogtreecommitdiff
path: root/p/tools/todo.html.tt
diff options
context:
space:
mode:
authorschodet2005-10-05 22:04:28 +0000
committerschodet2005-10-05 22:04:28 +0000
commit15b9d85e5514d1ba481ee493c15f5aab80424ae9 (patch)
tree3e4c811e9262811ab503a64e9c632e1fde81bd6e /p/tools/todo.html.tt
parentcfc26c09952095a4db528802768400cff5b43936 (diff)
Ajout d'une préversion de la sortie HTML.
Ajout d'une préversion de la sortie texte.
Diffstat (limited to 'p/tools/todo.html.tt')
-rw-r--r--p/tools/todo.html.tt44
1 files changed, 44 insertions, 0 deletions
diff --git a/p/tools/todo.html.tt b/p/tools/todo.html.tt
new file mode 100644
index 0000000..fe25164
--- /dev/null
+++ b/p/tools/todo.html.tt
@@ -0,0 +1,44 @@
+<?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 task tasks = tasks %]
+ </ul>
+ </body>
+</html>
+
+[% BLOCK leaf %]
+<li class="task"><p><span id="state">[% task.state %]</span> <span class="text">[% task.text %]</span> <span class="owner">[% task.owner.join (', ') %]</span></p></li>
+[% END %]
+
+[% BLOCK task %]
+ [% IF tasks.size > 0 %]
+ [% FOREACH t = tasks %]
+ [% IF t.exists ('text') %]
+ [% PROCESS leaf task = t %]
+ [% ELSE %]
+ [% IF t.key %]
+ [% IF t.value.value.exists ('text') %]
+ prout
+ [% ELSE %]
+ <li><p>[% t.key %]</p>
+ <ul>
+ [% PROCESS task tasks = t.value %]
+ </ul>
+ </li>
+ [% END %]
+ [% ELSE %]
+ [% PROCESS task tasks = t.value %]
+ [% END %]
+ [% END %]
+ [% END %]
+ [% ELSE %]
+ <li><p>Aucune Tache</p></li>
+ [% END %]
+[% END %]