Parent: [f159ad] (diff)

Download this file

page_view.html    88 lines (76 with data), 3.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
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
{% extends 'forgewiki:templates/wiki/master.html' %}
{% do g.register_forge_css('css/forge/hilite.css', compress=False) %}
{% 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 extra_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" title="Edit"><b data-icon="{{g.icons['pencil'].char}}" class="ico {{g.icons['pencil'].css}}" title="Edit"></b></a>
{% endif %}
<a href="history" title="History"><b data-icon="{{g.icons['history'].char}}" class="ico {{g.icons['history'].css}}" title="History"></b></a>
{% elif h.has_access(page, 'delete')() %}
<a class="post-link" href="undelete" title="Undelete"><b data-icon="{{g.icons['undelete'].char}}" class="ico {{g.icons['undelete'].css}}" title="Undelete"></b></a>
{% endif %}
{% if c.user and c.user != c.user.anonymous() %}
{{c.subscribe_form.display(value=subscribed, action='subscribe', style='icon', tool_subscribed=tool_subscribed)}}
{% endif %}
<a href="feed" title="RSS"><b data-icon="{{g.icons['feed'].char}}" class="ico {{g.icons['feed'].css}}" title="Feed"></b></a>
<a href="../search" title="Search"><b data-icon="{{g.icons['search'].char}}" class="ico {{g.icons['search'].css}}" title="Search"></b></a>
{% endblock %}
{% block wiki_content %}
{{page.html_text}}
{% endblock %}
{% block wiki_meta %}
<div class="editbox">
{% if page.labels %}
<div class="grid-9">
<label class="simple">Labels: </label>
{% for label in page.labels %}
{% if label != '' %}
<span><a href="{{c.app.url}}search/?q=labels_t:{{label}}">{{label}} ({{page.artifacts_labeled_with(label, page.app_config).count()}})</a></span>
{% endif %}
{% endfor %}
</div>
{% endif %}
<div class="grid-9 gravatar sm">
<label class="simple">Authors</label>
{% for author in page.authors() %}
<a href="{{author.url()}}">
{{lib.gravatar(author, size=16)}}
</a>
{% endfor %}
</div>
</div>
{% endblock %}
{% block after_content %}
{% if page.attachments %}
<div class="grid-18">
<strong>Attachments</strong>
</div>
{% endif %}
{% for att in page.attachments %}
<div>
<a href="{{att.url()}}">{{att.filename}}</a>
({{att.length}} bytes)
</div>
{% endfor %}
<hr class="grid-19" style="margin-top: 1em; margin-bottom: 2em; clear:both;">
{{lib.related_artifacts(page)}}
{% if page.discussion_thread and c.app.show_discussion %}
{% set thread = page.discussion_thread %}
<div>{{c.thread.display(value=thread,page=pagenum,limit=limit,count=count)}}</div>
{% endif %}
{% endblock %}