Mercurial > hg > documentViewer
changeset 491:fe319aa0ba30 elementtree
added toc_none template.
author | casties |
---|---|
date | Wed, 31 Aug 2011 18:22:12 +0200 |
parents | 6f116b86a226 |
children | f1f55b91f400 |
files | documentViewer.py zpt/toc_none.zpt |
diffstat | 2 files changed, 29 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/documentViewer.py Mon Aug 29 16:39:50 2011 +0200 +++ b/documentViewer.py Wed Aug 31 18:22:12 2011 +0200 @@ -120,6 +120,7 @@ toc_thumbs = PageTemplateFile('zpt/toc_thumbs', globals()) toc_text = PageTemplateFile('zpt/toc_text', globals()) toc_figures = PageTemplateFile('zpt/toc_figures', globals()) + toc_none = PageTemplateFile('zpt/toc_none', globals()) page_main_images = PageTemplateFile('zpt/page_main_images', globals()) page_main_double = PageTemplateFile('zpt/page_main_double', globals()) page_main_text = PageTemplateFile('zpt/page_main_text', globals())
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zpt/toc_none.zpt Wed Aug 31 18:22:12 2011 +0200 @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +</head> +<body> + <!-- block used for main content area --> + <div class="toc-none" metal:define-macro="main"> + <ul class="switcher"> + <li> + <a tal:attributes="href python:here.getLink('tocMode','thumbs')">Thumbnails</a> + </li> + <li tal:condition="python:docpath and docinfo.get('numTocEntries', None)"> + <a tal:attributes="href python:here.getLink('tocMode','text')">Content</a> + </li> + <li tal:condition="python:docpath and docinfo.get('numFigureEntries', None)"> + <a tal:attributes="href python:here.getLink('tocMode','figures')">Figures</a> + </li> + <li class="sel"> + <a tal:attributes="href python:here.getLink('tocMode','none')">None</a> + </li> + </ul> + <div class="content"></div> + </div> + <!-- toc --> +</body> +</html>