whole bunch of changes to make things work cleanly on the server
[yourule] / templates / gallery.tmpl
index b80b538d89571e2b7e74dbd2e00dd3e7d6cf2b96..ecfd4fdb263926d59216adfcaa2eb389e27c3a5d 100644 (file)
@@ -18,9 +18,9 @@
   <td><%= ruler.pixel_width %></td>
   <td><%= ruler.cm_width() %>/<%= ruler.in_width() %></td>
   <td>
   <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="<%= homepath %>/show/ruler_<%= ruler.pixel_width %>px_<%= ruler.cm_width() %>centimeters.png?fromgallery=true">cm</a>/<a href="<%= homepath %>/show/ruler_<%= ruler.pixel_width %>px_<%= ruler.in_width() %>inches.png?fromgallery=true">in</a>
   </td>
   </td>
-  <td><form method="GET" action="delete/<%= ruler.id %>" style="display:inline;">
+  <td><form method="GET" action="<%= homepath %>/delete/<%= ruler.id %>" style="display:inline;">
       <input type="submit" value="delete" /></form></td>
 </tr>
 <% endfor %>
       <input type="submit" value="delete" /></form></td>
 </tr>
 <% endfor %>
@@ -37,7 +37,7 @@ form.</p>
 <%= errormsg %>
 </div>
 <% endif %>
 <%= errormsg %>
 </div>
 <% endif %>
-<form method="POST" action="/gallery">
+<form method="POST" action="<%= homepath %>/gallery">
 
 <% include '_form_elements.tmpl' %>
 
 
 <% include '_form_elements.tmpl' %>
 

Benjamin Mako Hill || Want to submit a patch?