Child: [f278c7] (diff)

Download this file

browse.html    57 lines (52 with data), 1.9 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
{% extends 'wiki/master.html' %}
{% block title %}{{c.project.name}} / {{c.app.config.options.mount_label}} / Browse Pages{% endblock %}
{% block header %}Browse Pages{% endblock %}
{% block wiki_content %}
<div class="nested-grid-container">
<div class="grid-10">{{c.page_size.display(limit=limit,count=count,page=page)}}</div>
<div class="grid-10 tright">View: <a id="sort_recent" href="?sort=recent">Recently Updated</a> | <a id="sort_alpha" href="?sort=alpha">Alphabetical</a>&nbsp;</div>
</div>
<div style="clear:both"></div>
<table id="forge_wiki_browse">
<thead>
<tr>
<th>Title</th>
<th>Last Update By</th>
<th>Last Updated</th>
</tr>
</thead>
<tbody>
{% for page in pages %}
<tr class="{{'deleted ' if page.deleted else ''}}{{loop.cycle('', 'even')}}">
<td><a href="../{{h.urlquote(page['title'])+'/'+('?deleted=True' if page.deleted else '')}}">{{page['title']}}</a></td>
{% if 'user_label' in page %}
<td>{{page['user_label']}}</td>
{% else %}
<td></td>
{% endif %}
{% if 'updated' in page %}
<td>{{h.ago(page['updated'])}}</td>
{% else %}
<td></td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
{% if can_delete %}
<a id="toggle_deleted" href="#" style="display:none"><span></span> deleted pages</a>
{% endif %}
{{c.page_list.display(limit=limit, page=page, count=count)}}
{% endblock %}
{% block wiki_extra_css %}
<style type="text/css">
tr.deleted a { color:red; }
</style>
{% endblock %}
{% block wiki_extra_js %}
<script type="text/javascript">
var show_deleted = {{'true' if show_deleted else 'false'}},
can_delete = {{'true' if can_delete else 'false'}};
</script>
<script type="text/javascript" src="{{g.app_static('js/browse.js')}}"></script>
{% endblock %}