fix cross-device link error
[PyX.git] / www / maintemplate.pt
blob0b010ac207ffab25d9b4bea7e90c1204ee13eb04
1 <span metal:define-macro="navlink" tal:omit-tag="">
2   <span tal:condition="python: options['pagename'] != htmlname" tal:omit-tag="">
3     <a tal:attributes="href python: options['mkrellink'](htmlname, options)" tal:content="navname">navname</a>
4   </span>
5   <span tal:condition="python: options['pagename'] == htmlname" tal:omit-tag="">
6     <span tal:content="navname">navname</span>
7   </span>
8 </span>
10 <html metal:define-macro="page">
12   <head>
13     <meta http-equiv="content-type" content="text/html; charset=utf-8">
14     <title>PyX — Python graphics package</title>
15     <link rel="shortcut icon" type="image/x-icon" tal:attributes="href python: options['mkrellink']('pyx.ico', options)">
16     <link rel="stylesheet" type="text/css" tal:attributes="href python: options['mkrellink']('main.css', options)">
17   </head>
19   <body>
21     <div id="background"></div>
23     <div id="navigation">
25       <div class="logo">
26         <a href="http://pyx.sourceforge.net/"><img alt="PyX" width=121 height=65 tal:attributes="src python: options['mkrellink']('pyxlogo.png', options)"></a>
27       </div>
29       <div class="box">
30         <div class="title">Navigation</div>
31         <div class="link" tal:define="htmlname python: 'index.html'; navname python: 'Home'"><span metal:use-macro="options/maintemplate/macros/navlink"></span></div>
32         <div class="link" tal:define="htmlname python: 'news.html'; navname python: 'News'"><span metal:use-macro="options/maintemplate/macros/navlink"></span></div>
33         <div class="link" tal:define="htmlname python: 'roadmap.html'; navname python: 'Roadmap'"><span metal:use-macro="options/maintemplate/macros/navlink"></span></div>
34         <div class="link" tal:define="htmlname python: 'documentation.html'; navname python: 'Documentation'"><span metal:use-macro="options/maintemplate/macros/navlink"></span></div>
35         <div class="link" tal:define="htmlname python: 'examples/index.html'; navname python: 'Examples'"><span metal:use-macro="options/maintemplate/macros/navlink"></span></div>
36         <tal:block repeat="subpage options/subpages" tal:condition="python: options['pagename'].startswith('examples')">
37           <div class="sublink" tal:define="htmlname string:examples/${subpage/dir}/index.html; navname subpage/title">- <span metal:use-macro="options/maintemplate/macros/navlink"></span></div>
38         </tal:block>
39         <div class="link" tal:define="htmlname python: 'license.html'; navname python: 'License'"><span metal:use-macro="options/maintemplate/macros/navlink"></span></div>
40       </div>
42       <div class="box">
43         <div class="title">SourceForge</div>
44         <div class="link"><a href="https://sourceforge.net/projects/pyx/">Project page</a></div>
45         <div class="link"><a href="https://sourceforge.net/p/pyx/mailman/">Mailing lists</a></div>
46         <div class="link"><a href="https://sourceforge.net/p/pyx/gallery/">Gallery</a></div>
47         <div class="link"><a href="https://sourceforge.net/p/pyx/code/HEAD/tree/trunk/pyx/CHANGES">ChangeLog</a></div>
48       </div>
50       <div class="box">
51         <div class="title">PyPI</div>
52         <div class="link"><a href="https://pypi.python.org/pypi/PyX">Project page</a></div>
53         <div class="link"><a tal:attributes="href string:https://pypi.python.org/packages/source/P/PyX/PyX-${options/version}.tar.gz">Download</a></div>
54       </div>
56       <div class="box">
57         <div class="title">Links</div>
58         <div class="link"><a href="http://www.python.org/">Python</a></div>
59         <div class="link"><a href="http://www.tug.org/">TeX</a></div>
60         <div class="link"><a href="http://partners.adobe.com/public/developer/ps/index_specs.html">PostScript</a></div>
61         <div class="link"><a href="http://www.adobe.com/devnet/pdf/pdf_reference.html">PDF</a></div>
62         <div class="link"><a href="http://www.w3.org/TR/SVG/">SVG</a></div>
63       </div>
65       <div class="sflink">
66         <a href="http://sourceforge.net/"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=45430&amp;type=1" width=88 height=31 alt="SourceForge Logo"></a>
67       </div>
69       <div class="w3clink">
70         <a href="http://validator.w3.org/check/referer"><img alt="Valid HTML 4.01!" width=88 height=31 tal:attributes="src python: options['mkrellink']('valid-html401.png', options)"></a>
71       </div>
73       <div class="w3clink">
74         <a href="http://jigsaw.w3.org/css-validator/check/referer"><img alt="Valid CSS!" width=88 height=31 tal:attributes="src python: options['mkrellink']('vcss.png', options)"></a>
75       </div>
76     </div>
79     <div id="contentwrapper">
80       <div id="content">
81         <div metal:define-slot="body">Content</div>
82       </div>
83     </div>
85   </body>
86 </html>
87 <!-- vim:set syntax=html: -->