summaryrefslogtreecommitdiff
path: root/templates/layout.xi
blob: e14e21b7ab8a2030aab9842f62c90232b2de860e (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<html	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:py="http://genshi.edgewall.org/"
	xmlns:sub="http://local.sublab.org/subdap/xmlns-templates"
	py:strip="">
<!-- vim:syntax=html
  -->

 <py:match path="head" once="true">
  <head py:attrs="select('@*')">
   <title py:with="title = list(select('title/text()'))">subdap<py:if test="title">: ${title}</py:if></title>
   <link rel="stylesheet" href="${url('static/layout.css')}" type="text/css"/>
   ${select('*[local-name()!="title"]')}
  </head>
 </py:match>

 <py:match path="sub:infobox" once="true">
  <div id="infobox">
   <img src="static/info.png" alt="info"/>
   <p>${select('text()')}</p>
  </div>
 </py:match>

 <py:match path="sub:bodyform" once="true">
  <body id="formcont" py:attrs="select('@*')">
   ${select('sub:infobox')}
   <div>
    <img id="logo" src="static/ldap.png" alt="subdap"/>
    ${select('*')}
   </div>
  </body>
 </py:match>
</html>