-
Notifications
You must be signed in to change notification settings - Fork 2k
/
history.html
53 lines (46 loc) · 2.18 KB
/
history.html
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
<html xmlns:py="http://genshi.edgewall.org/"
xmlns:i18n="http://genshi.edgewall.org/i18n"
xmlns:xi="http://www.w3.org/2001/XInclude"
py:strip="">
<py:def function="page_title">${c.pkg_dict.get('title', c.pkg_dict['name'])} - Datasets - History</py:def>
<py:def function="page_heading">History: ${c.pkg.title or c.pkg.name}</py:def>
<py:def function="body_class">no-sidebar</py:def>
<div py:match="content" class="dataset">
<h3>Revisions</h3>
<form id="dataset-revisions" action="diff" method="post"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<h3 py:if="c.error" class="form-errors">
Error: ${c.error}
</h3>
<input type="hidden" name="pkg_name" value="${c.pkg_dict['name']}"/>
<table class="table table-striped table-bordered table-condensed">
<tr>
<th></th><th>Revision</th><th>Timestamp</th><th>Author</th><th>Log Message</th>
</tr>
<py:for each="index, rev in enumerate(c.pkg_revisions)">
<tr>
<td nowrap="nowrap">
${h.radio("selected1", rev.id, checked=(index == 0))}
${h.radio("selected2", rev.id, checked=(index == len(c.pkg_revisions)-1))}
</td>
<td>
<a href="${h.url_for(controller='revision',action='read',id=rev['id'])}">${rev['id'][:4]}…</a>
</td>
<td>
<a href="${h.url_for(controller='package',action='read',id='%s@%s' % (c.pkg_dict['name'], rev['timestamp']))}" title="${'Read dataset as of %s' % rev['timestamp']}">${h.render_datetime(rev['timestamp'], with_hours=True)}</a></td>
<td>${h.linked_user(rev['author'])}</td>
<td>${rev['message']}</td>
</tr>
</py:for>
</table>
<input type="submit" name="diff" value="${_('Compare »')}" class="btn btn-primary" />
</form>
</div>
<py:def function="optional_feed">
<link rel="alternate" type="application/atom+xml" title="Dataset History"
href="${h.url(controller='package', action='history', id=c.pkg_dict['name'], format='atom', days=7)}" />
</py:def>
<xi:include href="layout.html" />
</html>