<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>