Debian Codegraph @

examples/simplewiki/templates/layout.html

raw
1 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://genshi.edgewall.org/"
2 xmlns:xi="http://www.w3.org/2001/XInclude" py:strip="">
3 <xi:include href="macros.xml" />
4 <py:match path="head" once="true">
5 <head py:attrs="select('@*')">
6 <title py:with="title = list(select('title/text()'))"><py:if
7 test="title">${title} — </py:if>SimpleWiki</title>
8 <link rel="stylesheet" type="text/css" href="${href('_shared', 'style.css')}" />
9 ${select('*[local-name()!="title"]')}
10 </head>
11 </py:match>
12 <py:match path="body" once="true">
13 <body py:attrs="select('@*')">
14 <div class="bodywrapper">
15 <div class="header">
16 <h1><a href="${href()}">Simple Wiki</a></h1>
17 </div>
18 <div class="contents">
19 <div class="page_meta" py:if="not hide_navigation and page.timestamp">
20 <a href="${href(page.name, rev=page.revision_id)}">This revision</a>
21 was created on ${format_datetime(page.timestamp)}.
22 </div>
23 <div class="navigation">
24 <py:if test="not hide_navigation">
25 <py:for each="id, href, title in (
26 ('show', href(page.name), 'show'),
27 ('edit', href(page.name, action='edit'), 'edit'),
28 ('log', href(page.name, action='log'), 'log')
29 )">
30 <a href="${href}" class="${'active' if id == page_action else
31 None}">${title}</a> |
32 </py:for>
33 </py:if>
34 <a href="${href()}">main</a> |
35 <a href="${href('Special:Index')}">index</a> |
36 <a href="${href('Special:Recent_Changes')}">changes</a>
37 </div>
38 ${select('*|text()')}
39 </div>
40 <div class="footer">
41 Werkzeug Example Wiki Application
42 </div>
43 </div>
44 </body>
45 </py:match>
46 </html>