JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
link to archived versions from page edit page
[wfpl-cms.git] / admin_pages.html
index 26c7f18..638b630 100644 (file)
 
                <h2><!--~id unset {~-->Add a new page<!--~}~--><!--~id {~-->Edit page "~title html~"<!--~}~--></h2>
 
+               <!--~archived_versions {~-->
+                       <p><a href="admin_pages?history_page_id=~id~">View archived versions of this page</a></p>
+               <!--~}~-->
+
                <form action="admin_pages" method="post"><!--~id {~--><div style="display: none"><input type="hidden" name="edit_id" value="~id attr~"></div><!--~}~-->
 
                        <div class="caption">Title</div>
 
                <h2>Edit history for page "~title html~"</h2>
 
-               <table cellspacing="0" cellpadding="4" border="0" summary="" class="evenodd">
-                       <tr>
-                               <th>title</th>
-                               <th>at</th>
-                               <th>by</th>
-                               <th></th>
-                       </tr>
-                       <!--~rows {~-->
+               <!--~rows once_else {~-->
+                       <p>There are no archived versions of this page.</p>
+               <!--~}~-->
+               <!--~rows once_if {~-->
+                       <table cellspacing="0" cellpadding="4" border="0" summary="" class="evenodd">
                                <tr>
-                                       <td>~title html~<!--~title empty {~--><em>(untitled)</em><!--~}~--></td>
-                                       <td class="timestamp">~timestamp~</td>
-                                       <td>~who html~</td>
-                                       <td>
-                                               <form style="display: inline-block" action="admin_pages"><input type="hidden" name="history_id" value="~history_id~"><input type="submit" value="view"></form>
-                                       </td>
+                                       <th>title</th>
+                                       <th>at</th>
+                                       <th>by</th>
+                                       <th></th>
                                </tr>
-                       <!--~}~-->
-               </table>
+                               <!--~rows {~-->
+                                       <tr>
+                                               <td>~title html~<!--~title empty {~--><em>(untitled)</em><!--~}~--></td>
+                                               <td class="timestamp">~timestamp~</td>
+                                               <td>~who html~</td>
+                                               <td>
+                                                       <!--~first {~-->
+                                                               <!--~filename nonempty {~-->
+                                                                       <form style="display: inline-block" action="~filename attr~"><input type="submit" value="view"></form>
+                                                               <!--~}~-->
+                                                               <!--~filename empty {~-->
+                                                                       <form style="display: inline-block" action="admin_pages"><input type="hidden" name="id" value="~page_id~"><input type="submit" value="view"></form>
+                                                               <!--~}~-->
+                                                       <!--~}~-->
+                                                       <!--~first unset {~-->
+                                                               <form style="display: inline-block" action="admin_pages"><input type="hidden" name="history_id" value="~history_id~"><input type="submit" value="view"></form>
+                                                       <!--~}~-->
+                                               </td>
+                                       </tr>
+                               <!--~}~-->
+                       </table>
+               <!--~}~-->
        <!--~}~-->
 <!--~}~-->
 </body>