<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>
-<br>
+{IF editable}<p><a href="{SCRIPT}?command=beginedit&file={FILE_URL}">Edit this file</a></p>{ELSE}<br>{ENDIF}
<hr>