comparison examples/trac/templates/layout.html @ 41:686059a8a32b trunk

Sync Trac port with vendor branch r44 and add missing template files.
author cmlenz
date Mon, 03 Jul 2006 21:01:42 +0000
parents
children e03b77726756
comparison
equal deleted inserted replaced
40:f8a5a6ee2097 41:686059a8a32b
1 <html xmlns="http://www.w3.org/1999/xhtml"
2 xmlns:py="http://purl.org/kid/ns#"
3 xmlns:xi="http://www.w3.org/2001/XInclude"
4 py:strip="">
5 <xi:include href="site.html"><xi:fallback/></xi:include>
6
7 <head py:match="head">
8 <title>${select('title/text()')} – Trac</title>
9 <div py:for="rel, links in chrome.links.items()" py:strip="">
10 <link rel="${rel}" py:for="link in links" href="${link.href}"
11 type="${link.type}" class="${link['class']}" title="${link.title}"/>
12 </div>
13 <script py:for="script in chrome.scripts"
14 type="${script.type}" src="${script.href}"/>
15 </head>
16
17 <body py:match="body">
18 <div id="banner">
19 <div id="header">
20 <a id="logo" py:if="chrome.logo.src" href="${chrome.logo.link}"><img
21 src="${chrome.logo.src}" /></a>
22 </div>
23 <form py:if="perm.has_permission('SEARCH_VIEW')" id="search"
24 action="${href.search()}" method="get">
25 <div>
26 <label for="proj-search">Search:</label>
27 <input type="text" id="proj-search" name="q" size="10" accesskey="f" value="" />
28 <input type="submit" value="Search" />
29 <input type="hidden" name="wiki" value="on" />
30 <input type="hidden" name="changeset" value="on" />
31 <input type="hidden" name="ticket" value="on" />
32 </div>
33 </form>
34 <div id="metanav" class="nav">
35 <ul py:if="chrome.nav.metanav">
36 <li py:for="idx, item in enumerate(chrome.nav.metanav)"
37 py:content="HTML(item.label)"
38 class="${' '.join(filter(None, [
39 (idx == 0) and 'first',
40 (idx == len(chrome.nav.metanav) - 1) and 'last'
41 ])) or None}"/>
42 </ul>
43 </div>
44 </div>
45 <div id="mainnav" class="nav">
46 <ul py:if="chrome.nav.mainnav">
47 <li py:for="idx, item in enumerate(chrome.nav.mainnav)"
48 py:content="HTML(item.label)"
49 class="${' '.join(filter(None, [
50 (idx == 0) and 'first',
51 (idx == len(chrome.nav.mainnav) - 1) and 'last'
52 ])) or None}"/>
53 </ul>
54 </div>
55
56 <div id="main">
57 ${select('*')}
58
59 <div id="altlinks" py:if="chrome.links.alternate">
60 <h3>Download in other formats:</h3>
61 <ul><li py:for="link in chrome.links.alternate">
62 <a href="${link.href}" class="${link['class']}"
63 py:content="${link.title}" />
64 </li></ul>
65 </div>
66 </div>
67
68 <div id="footer">
69 <hr/>
70 <a id="tracpowered" href="http://trac.edgewall.com/"><img src="${href.chrome('common/trac_logo_mini.png')}" height="30" width="107" alt="Trac Powered"/></a>
71 <p class="left">
72 Powered by <a href="${href.about()}"><strong>Trac ${chrome.version}</strong></a><br />
73 By <a href="http://www.edgewall.com/">Edgewall Software</a>.
74 </p>
75 <p class="right">
76 ${HTML(config.project.get('footer'))}
77 </p>
78 </div>
79 </body>
80
81 </html>
Copyright (C) 2012-2017 Edgewall Software