summaryrefslogtreecommitdiff
path: root/templates/layout.xi
blob: 10162dabdc3ae0ddf96d50e085e7db77225fda7c (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
34
35
36
37
38
39
40
41
42
43
<?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"/>
   <link rel="shortcut icon" href="${url('static/favicon.png')}" type="image/png"/>
   ${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>
    <a href="login"><img id="logo" src="static/ldap.png" alt="subdap" width="192" height="230"/></a>
    ${select('*')}
   </div>
  </body>
 </py:match>

 <py:match path="sub:bodylarge" once="true">
  <body id="large" py:attrs="select('@*')">
   <div>
    <a href="login"><img id="logo" src="static/ldap.png" alt="subdap" width="192" height="230"/></a>
    ${select('*')}
   </div>
  </body>
 </py:match>
</html>