whole bunch of changes to make things work cleanly on the server
[yourule] / templates / show_ruler.tmpl
index d10b380cbc458a74d7a07de3d1ee047b17b9d53d..bcdf7fae2e4e6a078f9568f305cf0d4476a68170 100644 (file)
@@ -1,19 +1,19 @@
 <html>
 <head>
-<link rel="stylesheet" type="text/css" href="/static/style.css" />
+<link rel="stylesheet" type="text/css" href="<%= homepath %>/style.css" />
 </head>
 <p id="menu">
-<a href="/show/<%= other_unit_url %>">show in <%= other_unit %></a>
+<a href="<%= homepath %>/show/<%= other_unit_url %>">show in <%= other_unit %></a>
 /
 <% if fromgallery %>
-<a href="/gallery">back to gallery</a>
+<a href="<%= homepath %>/gallery">back to gallery</a>
 <% else %>
-<a href="/gallery/<%= ruler_url %>">save for others</a>
+<a href="<%= homepath %>/gallery/<%= ruler_url %>">save for others</a>
 <% endif %>
 </p>
 
 <div id="rulerimg">
-<img src="/<%= ruler_url %>" alt="<%= ruler_url %>" />
+<img src="<%= homepath %>/<%= ruler_url %>" alt="<%= ruler_url %>" />
 </div>
 
 

Benjamin Mako Hill || Want to submit a patch?