Mercurial > genshi > mirror
annotate examples/trac/templates/layout.html @ 61:448792ab1303 trunk
Use a different namespace than Kid uses.
author | cmlenz |
---|---|
date | Fri, 07 Jul 2006 17:54:52 +0000 |
parents | 6474226bb8b6 |
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 | 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 | 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 | 16 <div py:def="navigation(category)" id="${category}" class="nav"> |
17 <ul py:if="chrome.nav[category]"> | |
18 <li py:for="idx, item in enumerate(chrome.nav[category])" | |
19 class="${' '.join(filter(None, [ | |
20 (idx == 0) and 'first', | |
21 (idx == len(chrome.nav[category]) - 1) and 'last' | |
22 ])) or None}">${HTML(item.label)}</li> | |
23 </ul> | |
24 </div> | |
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 | 32 <form py:if="'SEARCH_VIEW' in perm" id="search" |
56 | 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 | 40 </div></form> |
41 ${navigation('metanav')} | |
41
686059a8a32b
Sync Trac port with vendor branch r44 and add missing template files.
cmlenz
parents:
diff
changeset
|
42 </div> |
56 | 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 | 50 <ul><li py:for="idx, link in enumerate(chrome.links.alternate)" |
51 class="${' '.join(filter(None, [ | |
52 (idx == 0) and 'first', | |
53 (idx == len(chrome.links.alternate) - 1) and 'last' | |
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 | 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 | 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> |