Parent: [f277f5] (diff)

Child: [75e640] (diff)

Download this file

page_view.html    44 lines (41 with data), 1.4 kB

 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="${g.pyforge_templates}/master.html"/>
<xi:include href="${c.app.templates}/lib.html" />
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
<title>$page.title</title>
<link rel="stylesheet" type="text/css"
href="${g.app_static('css/hilite.css')}"/>
<style>
.hidden { display: None }
</style>
</head>
<body>
<h1>$page.title</h1>
<div>
${Markup(page.html_text)}
</div>
<div py:if="len(page.tags)">
Tags: <span py:for="tag in page.tags">$tag.tag ($tag.count) </span>
</div>
${list_attachments(list(page.attachments), False)}
<hr/>
<h2>Comments</h2>
<div class="reply title-pane closed">
<button class="title" type="button">Add reply</button>
<div class="content">
<form method="post" action="comments/reply">
<textarea rows="4" cols="60" name="text"></textarea><br/>
<input type="submit" value="Save Comment"/>
</form>
</div>
</div>
<py:for each="cmt in page.root_comments()">
${display_comment(cmt)}
</py:for>
</body>
</html>