whole bunch of changes to make things work cleanly on the server
[yourule] / templates / show_ruler.tmpl
index ac20fd61088d15f88b30cedc92bcc72411845db6..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>
-#else
-<a href="/gallery/$ruler_url">save for others</a>
-#end if
+<% if fromgallery %>
+<a href="<%= homepath %>/gallery">back to gallery</a>
+<% else %>
+<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?