<p>(equals <a href="{URL}" target="_blank">{URL}</a>)</p>
-<p><a href="{SCRIPT}?command=show&file={DIR}">Back to {DIR}</a></p>
+<p><a href="{SCRIPT}?command=show&file={DIR_URL}">Back to {DIR}</a></p>
<div style="background-color:#FFFFE0;border:1px solid black;margin-top:10px;width:100%">
<pre style="color:#0000C0;">
</pre>
</div>
-{IF editable}<p><a href="{SCRIPT}?command=beginedit&file={FILE}">Edit this file</a></p>{ELSE}<br>{ENDIF}
+<ul>
+<li><a href="{SCRIPT}?command=download&file={FILE_URL}">Download this file</a></li>{IF editable}
+<li><a href="{SCRIPT}?command=beginedit&file={FILE_URL}">Edit this file</a></li>{ENDIF}
+</ul>
<hr>