]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/webapps/wiki/revisions.xml
interpolate: split out format into a hook
[factor.git] / extra / webapps / wiki / revisions.xml
index 0a0de8e470e2d8e945e71ac488fad715b028e4a5..759cc77449c0bb4d0d6f9b8213f1d628935e6831 100644 (file)
@@ -4,27 +4,9 @@
 
        <t:title>Revisions of <t:label t:name="title" /></t:title>
 
-       <div class="revisions">
-               <table>
-                       <tr>
-                               <th>Revision</th>
-                               <th>Author</th>
-                               <th>Rollback</th>
-                       </tr>
-
-                       <t:bind-each t:name="revisions">
-                               <tr>
-                                       <td> <t:a t:href="revision" t:query="id"><t:label t:name="date" /></t:a> </td>
-                                       <td> <t:a t:href="user-edits" t:query="author"><t:label t:name="author" /></t:a> </td>
-                                       <td> <t:button t:action="rollback" t:for="id" class="link link-button">Rollback</t:button> </td>
-                               </tr>
-                       </t:bind-each>
-               </table>
-       </div>
-
        <h2>View Differences</h2>
 
-       <form action="diff" method="get">
+       <t:form t:action="$wiki/diff" t:method="get">
                <table>
                        <tr>
                                <th class="field-label">Old revision:</th>
                        </tr>
                </table>
 
-               <input type="submit" value="View" />
-       </form>
-
-       <br/>
-
-       <div class="navbar">
-               <t:a t:href="$wiki/view" t:query="title">Latest</t:a>
-               | <t:a t:href="$wiki/revisions" t:query="title">Revisions</t:a>
-               | <t:a t:href="$wiki/edit" t:query="title">Edit</t:a>
-               | <t:button t:action="$wiki/delete" t:for="title" class="link-button link">Delete</t:button>
-       </div>
+               <button type="submit">View</button>
+       </t:form>
 
 </t:chloe>