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
|
{% extends "base.html" %}
{% block title %} Wiki {% endblock %}
{% block content %}
<div class="yui3-g">
<div id="page_header" class="yui3-u-1">
<div class="content-left">
<h2>
{% if template %}
{{template.name}}:
{% else %}
{{filename}}:
{% endif %}
</h2>
</div>
</div>
</div>
<div class="yui3-g">
<div id="page_header" class="yui3-u-1">
<div class="content-left content-right">
{% if template %}
<table>
<tr>
<td>Name:</td>
<td>{{ template.name }}</td>
</tr>
<tr>
<td>Description:</td>
<td>{{ template.description }}</td>
</tr>
<tr>
<td>Save Location:</td>
<td>{{ template.save_location }}</td>
</tr>
<tr>
<td>Actions:</td>
<td>
{{ h.link_to("Edit", h.url(controller="admin/wiki",
action="edit_page_template",
filename=filename)) }},
{{ h.link_to("Delete", h.url(controller="admin/wiki",
action="delete_page_template",
filename=filename),
confirm="Are you sure you wish to delete this page template?") }}
</td>
</tr>
</table>
Content:
<table width="99%">
<tr>
<td>
{{ formatter.format(template.name,
template.content,
strip_html=False).replace('\n', '<br>') }}
</td>
</tr>
</table>
{% else %}
There is no template with this name.<br>
{{h.link_to('Click here to create it', h.url(controller='admin/wiki',
action='edit_page_template',
filename=filename))}}
{% endif %}
</div>
</div>
</div>
{% endblock %}
|