]> 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 4b7bdadf50251f11aa184486f9f0b0ca4eb80f76..759cc77449c0bb4d0d6f9b8213f1d628935e6831 100644 (file)
@@ -4,28 +4,18 @@
 
        <t:title>Revisions of <t:label t:name="title" /></t:title>
 
-       <ul>
-               <t:each-tuple t:values="revisions">
-                       <li>
-                               <t:a t:href="revision" t:query="id"><t:label t:name="date" /></t:a>
-                               by
-                               <t:a t:href="user-edits" t:query="author"><t:label t:name="author" /></t:a>
-                       </li>
-               </t:each-tuple>
-       </ul>
-
        <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>
                                
                                <td>
                                        <select name="old-id">
-                                               <t:each-tuple t:values="revisions">
+                                               <t:bind-each t:name="revisions">
                                                        <option> <t:label t:name="id" /> </option>
-                                               </t:each-tuple>
+                                               </t:bind-each>
                                        </select>
                                </td>
                        </tr>
                                
                                <td>
                                        <select name="new-id">
-                                               <t:each-tuple t:values="revisions">
+                                               <t:bind-each t:name="revisions">
                                                        <option> <t:label t:name="id" /> </option>
-                                               </t:each-tuple>
+                                               </t:bind-each>
                                        </select>
                                </td>
                        </tr>
                </table>
 
-               <input type="submit" value="View" />
-       </form>
+               <button type="submit">View</button>
+       </t:form>
 
 </t:chloe>