annotate examples/trac/templates/layout.html @ 88:628ba9ed39ef trunk

Add support for list comprehension in expressions (see #12).
author cmlenz
date Mon, 17 Jul 2006 17:33:14 +0000
parents 448792ab1303
children
rev   line source
41
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
1 <html xmlns="http://www.w3.org/1999/xhtml"
61
448792ab1303 Use a different namespace than Kid uses.
cmlenz
parents: 56
diff changeset
2 xmlns:py="http://markup.edgewall.org/"
41
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
3 xmlns:xi="http://www.w3.org/2001/XInclude"
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
4 py:strip="">
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
5 <xi:include href="site.html"><xi:fallback/></xi:include>
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
6
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
7 <head py:match="head">
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
8 <title>${select('title/text()')} – Trac</title>
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
9 <div py:for="rel, links in chrome.links.items()" py:strip="">
52
1340e3297d19 Trac port: Make use of the fact that combining `py:for` with `py:attrs` now works correctly.
cmlenz
parents: 43
diff changeset
10 <link rel="${rel}" py:for="link in links" py:attrs="link"/>
41
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
11 </div>
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
12 <script py:for="script in chrome.scripts"
56
6474226bb8b6 Trac port: use a function to build mainnav/metanav.
cmlenz
parents: 52
diff changeset
13 type="${script.type}" src="${script.href}"></script>
41
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
14 </head>
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
15
56
6474226bb8b6 Trac port: use a function to build mainnav/metanav.
cmlenz
parents: 52
diff changeset
16 <div py:def="navigation(category)" id="${category}" class="nav">
6474226bb8b6 Trac port: use a function to build mainnav/metanav.
cmlenz
parents: 52
diff changeset
17 <ul py:if="chrome.nav[category]">
6474226bb8b6 Trac port: use a function to build mainnav/metanav.
cmlenz
parents: 52
diff changeset
18 <li py:for="idx, item in enumerate(chrome.nav[category])"
6474226bb8b6 Trac port: use a function to build mainnav/metanav.
cmlenz
parents: 52
diff changeset
19 class="${' '.join(filter(None, [
6474226bb8b6 Trac port: use a function to build mainnav/metanav.
cmlenz
parents: 52
diff changeset
20 (idx == 0) and 'first',
6474226bb8b6 Trac port: use a function to build mainnav/metanav.
cmlenz
parents: 52
diff changeset
21 (idx == len(chrome.nav[category]) - 1) and 'last'
6474226bb8b6 Trac port: use a function to build mainnav/metanav.
cmlenz
parents: 52
diff changeset
22 ])) or None}">${HTML(item.label)}</li>
6474226bb8b6 Trac port: use a function to build mainnav/metanav.
cmlenz
parents: 52
diff changeset
23 </ul>
6474226bb8b6 Trac port: use a function to build mainnav/metanav.
cmlenz
parents: 52
diff changeset
24 </div>
6474226bb8b6 Trac port: use a function to build mainnav/metanav.
cmlenz
parents: 52
diff changeset
25
41
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
26 <body py:match="body">
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
27 <div id="banner">
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
28 <div id="header">
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
29 <a id="logo" py:if="chrome.logo.src" href="${chrome.logo.link}"><img
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
30 src="${chrome.logo.src}" /></a>
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
31 </div>
43
e03b77726756 Trac example: fixes for alternative links.
cmlenz
parents: 41
diff changeset
32 <form py:if="'SEARCH_VIEW' in perm" id="search"
56
6474226bb8b6 Trac port: use a function to build mainnav/metanav.
cmlenz
parents: 52
diff changeset
33 action="${href.search()}" method="get"><div>
41
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
34 <label for="proj-search">Search:</label>
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
35 <input type="text" id="proj-search" name="q" size="10" accesskey="f" value="" />
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
36 <input type="submit" value="Search" />
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
37 <input type="hidden" name="wiki" value="on" />
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
38 <input type="hidden" name="changeset" value="on" />
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
39 <input type="hidden" name="ticket" value="on" />
56
6474226bb8b6 Trac port: use a function to build mainnav/metanav.
cmlenz
parents: 52
diff changeset
40 </div></form>
6474226bb8b6 Trac port: use a function to build mainnav/metanav.
cmlenz
parents: 52
diff changeset
41 ${navigation('metanav')}
41
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
42 </div>
56
6474226bb8b6 Trac port: use a function to build mainnav/metanav.
cmlenz
parents: 52
diff changeset
43 ${navigation('mainnav')}
41
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
44
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
45 <div id="main">
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
46 ${select('*')}
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
47
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
48 <div id="altlinks" py:if="chrome.links.alternate">
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
49 <h3>Download in other formats:</h3>
43
e03b77726756 Trac example: fixes for alternative links.
cmlenz
parents: 41
diff changeset
50 <ul><li py:for="idx, link in enumerate(chrome.links.alternate)"
e03b77726756 Trac example: fixes for alternative links.
cmlenz
parents: 41
diff changeset
51 class="${' '.join(filter(None, [
e03b77726756 Trac example: fixes for alternative links.
cmlenz
parents: 41
diff changeset
52 (idx == 0) and 'first',
e03b77726756 Trac example: fixes for alternative links.
cmlenz
parents: 41
diff changeset
53 (idx == len(chrome.links.alternate) - 1) and 'last'
e03b77726756 Trac example: fixes for alternative links.
cmlenz
parents: 41
diff changeset
54 ])) or None}">
41
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
55 <a href="${link.href}" class="${link['class']}"
43
e03b77726756 Trac example: fixes for alternative links.
cmlenz
parents: 41
diff changeset
56 py:content="link.title" />
41
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
57 </li></ul>
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
58 </div>
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
59 </div>
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
60
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
61 <div id="footer">
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
62 <hr/>
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
63 <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>
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
64 <p class="left">
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
65 Powered by <a href="${href.about()}"><strong>Trac ${chrome.version}</strong></a><br />
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
66 By <a href="http://www.edgewall.com/">Edgewall Software</a>.
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
67 </p>
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
68 <p class="right">
56
6474226bb8b6 Trac port: use a function to build mainnav/metanav.
cmlenz
parents: 52
diff changeset
69 ${chrome.footer}
41
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
70 </p>
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
71 </div>
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
72 </body>
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
73
686059a8a32b Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff changeset
74 </html>
Copyright (C) 2012-2017 Edgewall Software