first working version
[yourule] / templates / gallery.tmpl
index b615ef54ed941f82a5bbbd6b061f13442a2ca453..0a94f91760fd27988c88590b35f5f7246f15a64c 100644 (file)
@@ -4,7 +4,7 @@
 
 <h2>Gallery of Existing Rulers</h2>
 
-<table>
+<table id="gallery">
 <tr>
 <th>Model</th>
 <th>Pixel Width</th>
@@ -18,8 +18,7 @@
   <td>$ruler.pixel_width</td>
   <td>$ruler.cm_width()/$ruler.in_width</td>
   <td>
-    <a href="/show/ruler_${ruler.pixel_width}px_${ruler.cm_width}centimeters.png?fromgallery=true">cm</a>
-    <a href="/show/ruler_${ruler.pixel_width}px_${ruler.in_width}inches.png?fromgallery=true">in</a>
+    <a href="/show/ruler_${ruler.pixel_width}px_${ruler.cm_width}centimeters.png?fromgallery=true">cm</a>/<a href="/show/ruler_${ruler.pixel_width}px_${ruler.in_width}inches.png?fromgallery=true">in</a>
   </td>
   <td><form method="GET" action="delete/$ruler.id" style="display:inline;">
       <input type="submit" value="delete" /></form></td>
 <p>If your ruler is not on the list you should add it with the box
 form.</p>
 
-
+#if $getVar('errormsg', False)
+<div class="errormsg">
+<strong>Error</strong><br />
+$getVar('errormsg', False)
+</div>
+#end if
 <form method="POST" action="/gallery">
 
 #include 'templates/_form_elements.tmpl'

Benjamin Mako Hill || Want to submit a patch?