X-Git-Url: https://git.p6c8.net/devedit.git/blobdiff_plain/a07b98187cfa4eba82ab509350c1d317e802c1a6..77fef5e4b082959ff9154a3622c1f5406dea6d3b:/templates/viewfile.htm

diff --git a/templates/viewfile.htm b/templates/viewfile.htm
index 56d6595..7303f1f 100644
--- a/templates/viewfile.htm
+++ b/templates/viewfile.htm
@@ -12,7 +12,7 @@
 
 <p>(equals <a href="{URL}" target="_blank">{URL}</a>)</p>
 
-<p><a href="{SCRIPT}?command=show&amp;file={DIR}">Back to {DIR}</a></p>
+<p><a href="{SCRIPT}?command=show&amp;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;">
@@ -20,7 +20,10 @@
 </pre>
 </div>
 
-<br>
+<ul>
+<li><a href="{SCRIPT}?command=download&amp;file={FILE_URL}">Download this file</a></li>{IF editable}
+<li><a href="{SCRIPT}?command=beginedit&amp;file={FILE_URL}">Edit this file</a></li>{ENDIF}
+</ul>
 
 <hr>