diff options
author | cedricbonhomme <devnull@localhost> | 2012-04-15 18:59:50 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2012-04-15 18:59:50 +0200 |
commit | e6472738b5253aa328f8b2a4f4f2a23abc8582c2 (patch) | |
tree | c61704deed1d3cb37f5e3961794896c6dd115ba5 /source/epub/templates/toc.html | |
parent | Better use of datetime. (diff) | |
download | newspipe-e6472738b5253aa328f8b2a4f4f2a23abc8582c2.tar.gz newspipe-e6472738b5253aa328f8b2a4f4f2a23abc8582c2.tar.bz2 newspipe-e6472738b5253aa328f8b2a4f4f2a23abc8582c2.zip |
Reorganization of folders.
Diffstat (limited to 'source/epub/templates/toc.html')
-rw-r--r-- | source/epub/templates/toc.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/source/epub/templates/toc.html b/source/epub/templates/toc.html new file mode 100644 index 00000000..b14c9da3 --- /dev/null +++ b/source/epub/templates/toc.html @@ -0,0 +1,32 @@ +<html xmlns="http://www.w3.org/1999/xhtml" + xmlns:py="http://genshi.edgewall.org/"> +<head> + <title>${book.title}</title> + <style type="text/css"> +.tocEntry-1 { +} +.tocEntry-2 { + text-indent: 1em; +} +.tocEntry-3 { + text-indent: 2em; +} +.tocEntry-4 { + text-indent: 3em; +} + </style> +</head> +<body> + <py:def function="tocEntry(node)"> + <div class="tocEntry-${node.depth}"> + <a href="${node.href}">${node.title}</a> + </div> + <py:for each="child in node.children"> + ${tocEntry(child)} + </py:for> + </py:def> + <py:for each="child in book.getTocMapRoot().children"> + ${tocEntry(child)} + </py:for> +</body> +</html> |