Mercurial > genshi > mirror
annotate examples/trac/templates/layout.html @ 43:e03b77726756 trunk
Trac example: fixes for alternative links.
author | cmlenz |
---|---|
date | Mon, 03 Jul 2006 22:03:21 +0000 |
parents | 686059a8a32b |
children | 1340e3297d19 |
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" |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
2 xmlns:py="http://purl.org/kid/ns#" |
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=""> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
10 <link rel="${rel}" py:for="link in links" href="${link.href}" |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
11 type="${link.type}" class="${link['class']}" title="${link.title}"/> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
12 </div> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
13 <script py:for="script in chrome.scripts" |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
14 type="${script.type}" src="${script.href}"/> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
15 </head> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
16 |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
17 <body py:match="body"> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
18 <div id="banner"> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
19 <div id="header"> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
20 <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
|
21 src="${chrome.logo.src}" /></a> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
22 </div> |
43 | 23 <form py:if="'SEARCH_VIEW' in perm" id="search" |
41
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
24 action="${href.search()}" method="get"> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
25 <div> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
26 <label for="proj-search">Search:</label> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
27 <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
|
28 <input type="submit" value="Search" /> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
29 <input type="hidden" name="wiki" value="on" /> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
30 <input type="hidden" name="changeset" value="on" /> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
31 <input type="hidden" name="ticket" value="on" /> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
32 </div> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
33 </form> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
34 <div id="metanav" class="nav"> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
35 <ul py:if="chrome.nav.metanav"> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
36 <li py:for="idx, item in enumerate(chrome.nav.metanav)" |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
37 py:content="HTML(item.label)" |
43 | 38 class="${' '.join(filter(None, [ |
39 (idx == 0) and 'first', | |
40 (idx == len(chrome.nav.metanav) - 1) and 'last' | |
41 ])) or None}"/> | |
41
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
42 </ul> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
43 </div> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
44 </div> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
45 <div id="mainnav" class="nav"> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
46 <ul py:if="chrome.nav.mainnav"> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
47 <li py:for="idx, item in enumerate(chrome.nav.mainnav)" |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
48 py:content="HTML(item.label)" |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
49 class="${' '.join(filter(None, [ |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
50 (idx == 0) and 'first', |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
51 (idx == len(chrome.nav.mainnav) - 1) and 'last' |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
52 ])) or None}"/> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
53 </ul> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
54 </div> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
55 |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
56 <div id="main"> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
57 ${select('*')} |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
58 |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
59 <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
|
60 <h3>Download in other formats:</h3> |
43 | 61 <ul><li py:for="idx, link in enumerate(chrome.links.alternate)" |
62 class="${' '.join(filter(None, [ | |
63 (idx == 0) and 'first', | |
64 (idx == len(chrome.links.alternate) - 1) and 'last' | |
65 ])) or None}"> | |
41
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
66 <a href="${link.href}" class="${link['class']}" |
43 | 67 py:content="link.title" /> |
41
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
68 </li></ul> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
69 </div> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
70 </div> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
71 |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
72 <div id="footer"> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
73 <hr/> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
74 <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
|
75 <p class="left"> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
76 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
|
77 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
|
78 </p> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
79 <p class="right"> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
80 ${HTML(config.project.get('footer'))} |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
81 </p> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
82 </div> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
83 </body> |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
84 |
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
85 </html> |