Release diogenes-0.9.22
[diogenes.git] / admin-revs.tpl
... / ...
CommitLineData
1{if $diff}
2
3<div class="diff">
4<table class="light">
5<tr>
6 <th colspan="2">differences between {$smarty.request.r1} and {$smarty.request.r2}</th>
7</tr>
8{foreach from=$diff item=mydiff}
9<tr>
10 <td>[ {$smarty.request.r1} - {$mydiff[0]} ]</td>
11 <td>[ {$smarty.request.r2} - {$mydiff[2]} ]</td>
12</tr>
13<tr>
14 <td>{diff block=$mydiff[3] op=$mydiff[1]}</td>
15 <td>{diff block=$mydiff[4] op=$mydiff[1]}</td>
16</tr>
17{/foreach}
18</table>
19</div>
20
21{else}
22
23{literal}
24<script type="text/javascript">
25 <!--
26 function restore( myrev ) {
27 if (confirm ("You are about to restore revision " + myrev + ". Do you want to proceed?")) {
28 document.operations.rev.value = myrev;
29 document.operations.submit();
30 return true;
31 }
32 }
33 // -->
34</script>
35{/literal}
36
37<form method="post" action="{$post}" name="operations">
38<input type="hidden" name="dir" value="{$smarty.request.dir}" />
39<input type="hidden" name="target" value="{$smarty.request.target}" />
40<input type="hidden" name="rev" value=""/>
41<input type="hidden" name="action" value="restore" />
42</form>
43
44<table class="light">
45<tr>
46 <th>{$msg_version}</th>
47 <th>{$msg_date}</th>
48 <th>{$msg_author}</th>
49 <th>{$msg_log}</th>
50 <th>{$msg_actions}</th>
51</tr>
52{counter start=0 assign=cnt print=0}
53{foreach from=$entries item=entry}
54<tr{if $cnt % 2} class="odd"{/if}>
55 <td>{$entry[0]}</td>
56 <td><small>{$entry[1]}</small></td>
57 <td>{$entry[2]}</td>
58 <td>{$entry[3]}</td>
59 <td>
60 {foreach from=$entry[4] item=myaction}
61 {a lnk=$myaction class="action"}
62 {/foreach}
63 </td>
64</tr>
65{counter}
66{/foreach}
67</table>
68
69{/if}