16
24
{% set row_class = cycler('odd', 'even') %}
17
25
{% for template in template_names %}
18
26
<tr class="{{row_class.next()}}">
27
<td>{{h.link_to(template, h.url(controller="admin/wiki",
28
action="view_page_template",
20
30
<td>{{h.link_to("Edit",
21
h.url(controller='admin/wiki', action='edit_template',
31
h.url(controller='admin/wiki', action='edit_page_template',
22
32
filename=template)) }},
24
h.url(controller='admin/wiki', action='delete_page_template',
26
title="Delete template",
27
confirm="Are you sure you want to delete the " + template + " page template?
28
Deletion is permanant.") }}</td>
33
{{h.link_to("Delete", h.url(controller='admin/wiki',
34
action='delete_page_template',
36
confirm="Are you sure you want to delete the " + template + " page template?" +
37
" Deletion is permanant.") }}</td>
32
<td colspan="2">{{h.link_to('Create a new page template',
33
h.url(controller='admin/wiki',
34
action='show_project_wikis')
39
<p>There are no page templates to list.</p>
40
<p>{{h.link_to('Create a new wiki template',
41
h.url(controller='admin/wiki',
42
action='show_project_wikis')
42
<p>There are no page templates to list.</p>
43
{{ h.link_to("Create One", h.url(controller="admin/wiki", action="create_page_template")) }}