40 lines
1.2 KiB
HTML
40 lines
1.2 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
||
|
xmlns:py="http://genshi.edgewall.org/" py:strip="">
|
||
|
|
||
|
<py:match path="head" once="true">
|
||
|
<head py:attrs="select('@*')">
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||
|
<title py:with="title = list(select('title/text()'))">
|
||
|
Umfrage<py:if test="title">: ${title}</py:if>
|
||
|
</title>
|
||
|
<link rel="stylesheet" href="${base_url}media/style.css" type="text/css" />
|
||
|
${select('*[local-name()!="title"]')}
|
||
|
</head>
|
||
|
</py:match>
|
||
|
|
||
|
<tr py:match="trRenderOptionTitle" class="option_title">
|
||
|
<th py:for="column, option in enumerate(options)" class="column${column % 2}">${option.title}</th>
|
||
|
</tr>
|
||
|
|
||
|
<tr py:match="trRenderOptionImage" class="option_image">
|
||
|
<td py:for="column, option in enumerate(options)" class="column${column % 2}"><img src="${option.image}" width="${1024/len(options)}" /></td>
|
||
|
</tr>
|
||
|
|
||
|
<tr py:match="trRenderOptionText" class="option_text">
|
||
|
<td py:for="column, option in enumerate(options)" class="column${column % 2}"><ul><li py:for="line in option.text.splitlines()">${line}</li></ul></td>
|
||
|
</tr>
|
||
|
|
||
|
<py:match path="body" once="true">
|
||
|
<body py:attrs="select('@*')">
|
||
|
|
||
|
<div id="content">
|
||
|
${select('*|text()')}
|
||
|
</div>
|
||
|
|
||
|
</body>
|
||
|
</py:match>
|
||
|
|
||
|
</html>
|
||
|
|