Parent: [fea0bc] (diff)

Child: [faddef] (diff)

Download this file

page_view.html    94 lines (86 with data), 3.2 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{% extends 'jinja_wiki_master.html' %}
{% block title %}{{c.project.name}} / {{c.app.config.options.mount_label}} / {{page.title}}{% endblock %}
{% block header %}{{page.title}}{% if page['deleted'] %}<span> (deleted)</span>{% endif %}{% endblock %}
{% block wiki_extra_css %}
<link rel="stylesheet" type="text/css"
href="${g.app_static('css/hilite.css')}"/>
<style>
.hidden { display: None }
a.notfound { color: #f00; }
</style>
{% endblock %}
{% block head %}
<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"/>
{% endblock %}
{% block body_attrs %} class="wiki-{{(page.title).replace(' ','_')}}"{% endblock %}
{% block actions %}
{% if not page['deleted'] %}
{% if 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>
{% endif %}
<a href="history" class="btn ico-l"><b class="ui-icon ui-icon-search"></b> <span>History</span></a>
{% elif has_artifact_access('delete', page)() %}
<a href="undelete" class="btn ico-l"><b class="ui-icon ui-icon-plusthick"></b> <span>Undelete</span></a>
{% endif %}
{% if c.user and c.user != c.user.anonymous() %}
{{c.subscribe_form.display(value=subscribed, action='subscribe', style='icon')}}
{% endif %}
<a href="feed" class="btn ico"><b class="ui-icon ui-icon-signal-diag"></b> <span>RSS</span></a>
{% endblock %}
{% block wiki_content %}
{{page.html_text}}
{% endblock %}
{% block right_content %}
{% if page.labels %}
<div>
Tags:
{% for label in page.labels %}
{% if label != '' %}
<span><a href="{{c.app.url}}search/?q=labels_t:{{label}}">{{label}} ({{page.artifacts_labeled_with(label).count()}})</a></span>
{% endif %}
{% endfor %}
<hr/>
</div>
{% endif %}
<div class="gravatar sm">
Authors:
{% for author in page.authors() %}
<a href="{{author.url()}}">
{{gravatar(author, size=16)}}
</a>
{% endfor %}
</div>
{% if page.attachments %}
<div>
<hr/>
<strong>Attachments</strong>
</div>
{% endif %}
{% for att in page.attachments %}
<hr/>
{% if h.supported_by_PIL(att.contentType) and not att.is_embedded() %}
<div 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>
{% elif not h.supported_by_PIL(att.contentType) or att.is_embedded() %}
<div>
<a href="{{att.url()}}">{{att.metadata.filename}}</a>
({{att.length}} bytes)
</div>
{% endif %}
{% endfor %}
{% endblock %}
{% block after_content %}
<div style="clear:both;"/>
{% if page.discussion_thread() and c.app.show_discussion %}
{% set thread = page.discussion_thread() %}
<div>{{c.thread.display(value=thread)}}</div>
{% endif %}
{% endblock %}