Parent: [e77ad7] (diff)

Child: [ee7938] (diff)

Download this file

page_view.html    81 lines (78 with data), 3.8 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!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">
<?python from pyforge.lib import helpers as h?>
<?python from pyforge.lib.security import has_artifact_access?>
<xi:include href="wiki_master.html" py:if="c.app.show_left_bar or has_artifact_access('edit', app=c.app)()"/>
<xi:include href="master_one_col.html" py:if="not c.app.show_left_bar and not has_artifact_access('edit', app=c.app)()" />
<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')}"/>
<link rel="alternate" type="application/rss+xml" title="Page RSS" href="feed.rss"/>
<link rel="alternate" type="application/atom+xml" title="Page Atom" href="feed.atom"/>
<link rel="alternate" type="application/rss+xml" title="Wiki RSS" href="../feed.rss"/>
<link rel="alternate" type="application/atom+xml" title="Wiki Atom" href="../feed.atom"/>
<style>
.hidden { display: None }
a.notfound { color: #f00; }
</style>
</head>
<body class="wiki-${(page.title).replace(' ','_')}">
<h1 class="title">$page.title</h1>
<div class="actions">
<py:if test="c.user and c.user != c.user.anonymous()">
<a href="edit" class="btn ico-l"><b class="ui-icon ui-icon-pencil"></b> <span>Edit</span></a>
</py:if>
<a href="history" class="btn ico-l"><b class="ui-icon ui-icon-search"></b> <span>History</span></a>
<py:if test="c.user and c.user != c.user.anonymous()">
${c.subscribe_form.display(value=subscribed, action='subscribe', style='icon')}
</py:if>
<a href="feed" class="btn ico"><b class="ui-icon ui-icon-signal-diag"></b> <span>RSS</span></a>
</div>
<div class="content">
<div class="row dual">
<div class="column grid_${((c.app.show_left_bar or has_artifact_access('edit', app=c.app)()) and 8 or 12) + (not c.app.show_right_bar and 2 or 0)}">
${Markup(page.html_text)}
</div>
<div py:if="c.app.show_right_bar" id="sidebar-right" class="column grid_4 fright">
<div py:if="len(page.labels)">
Tags: <span py:for="label in page.labels" py:if="label != ''"><a href="../browse_tags">$label (${page.artifacts_labeled_with(label).count()})</a></span>
<hr/>
</div>
<div class="gravatar sm">
Authors:
<a href="${author.url()}" py:for="author in page.authors()">
${gravatar(author.preferences.email_address, size=16, title=author.display_name)}
</a>
</div>
<div py:if="page.attachments">
<hr/>
<strong>Attachments</strong>
</div>
<py:for each="att in page.attachments">
<hr/>
<div py:if="h.supported_by_PIL(att.contentType) and not att.is_embedded()" class="attachment_thumb">
<a href="${att.url()}">
<img src="${att.url()}/thumb"/>
</a><br/>
<a href="${att.url()}">${att.metadata.filename}</a>
($att.length bytes)
</div>
<div py:if="not h.supported_by_PIL(att.contentType) or att.is_embedded()">
<a href="${att.url()}">${att.metadata.filename}</a>
($att.length bytes)
</div>
</py:for>
</div>
</div>
<div style="clear:both;"/>
<div py:if="page.discussion_thread() and c.app.show_discussion" py:with="thread=page.discussion_thread()">
${c.thread.display(value=thread)}
</div>
</div>
</body>
</html>