File: layout.html

package info (click to toggle)
python-werkzeug 1.0.1%2Bdfsg1-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,888 kB
  • sloc: python: 21,897; javascript: 173; makefile: 36; xml: 16
file content (46 lines) | stat: -rw-r--r-- 1,872 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude" py:strip="">
  <xi:include href="macros.xml" />
  <py:match path="head" once="true">
    <head py:attrs="select('@*')">
      <title py:with="title = list(select('title/text()'))"><py:if
        test="title">${title} — </py:if>SimpleWiki</title>
      <link rel="stylesheet" type="text/css" href="${href('_shared', 'style.css')}" />
      ${select('*[local-name()!="title"]')}
    </head>
  </py:match>
  <py:match path="body" once="true">
    <body py:attrs="select('@*')">
      <div class="bodywrapper">
        <div class="header">
          <h1><a href="${href()}">Simple Wiki</a></h1>
        </div>
        <div class="contents">
          <div class="page_meta" py:if="not hide_navigation and page.timestamp">
            <a href="${href(page.name, rev=page.revision_id)}">This revision</a>
            was created on ${format_datetime(page.timestamp)}.
          </div>
          <div class="navigation">
            <py:if test="not hide_navigation">
              <py:for each="id, href, title in (
                ('show', href(page.name), 'show'),
                ('edit', href(page.name, action='edit'), 'edit'),
                ('log', href(page.name, action='log'), 'log')
              )">
                <a href="${href}" class="${'active' if id == page_action else
                  None}">${title}</a> |
              </py:for>
            </py:if>
            <a href="${href()}">main</a> |
            <a href="${href('Special:Index')}">index</a> |
            <a href="${href('Special:Recent_Changes')}">changes</a>
          </div>
          ${select('*|text()')}
        </div>
        <div class="footer">
          Werkzeug Example Wiki Application
        </div>
      </div>
    </body>
  </py:match>
</html>