]> gitweb.factorcode.org Git - factor.git/blob - extra/webapps/wiki/revisions.xml
Merge branch 'master' of git://repo.or.cz/factor/jcg
[factor.git] / extra / webapps / wiki / revisions.xml
1 <?xml version='1.0' ?>
2
3 <t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
4
5         <t:title>Revisions of <t:label t:name="title" /></t:title>
6
7         <div class="revisions">
8                 <table>
9                         <tr>
10                                 <th>Revision</th>
11                                 <th>By</th>
12                                 <th>Rollback</th>
13                         </tr>
14
15                         <t:bind-each t:name="revisions">
16                                 <tr>
17                                         <td> <t:a t:href="$wiki/revision" t:rest="id"><t:label t:name="date" /></t:a> </td>
18                                         <td> <t:a t:href="$wiki/user-edits" t:rest="author"><t:label t:name="author" /></t:a> </td>
19                                         <td> <t:button t:action="rollback" t:for="id" class="link link-button">Rollback</t:button> </td>
20                                 </tr>
21                         </t:bind-each>
22                 </table>
23         </div>
24
25         <h2>View Differences</h2>
26
27         <t:form t:action="$wiki/diff" t:method="get">
28                 <table>
29                         <tr>
30                                 <th class="field-label">Old revision:</th>
31                                 
32                                 <td>
33                                         <select name="old-id">
34                                                 <t:bind-each t:name="revisions">
35                                                         <option> <t:label t:name="id" /> </option>
36                                                 </t:bind-each>
37                                         </select>
38                                 </td>
39                         </tr>
40                         <tr>
41                                 <th class="field-label">New revision:</th>
42                                 
43                                 <td>
44                                         <select name="new-id">
45                                                 <t:bind-each t:name="revisions">
46                                                         <option> <t:label t:name="id" /> </option>
47                                                 </t:bind-each>
48                                         </select>
49                                 </td>
50                         </tr>
51                 </table>
52
53                 <input type="submit" value="View" />
54         </t:form>
55
56 </t:chloe>