]> git.p6c8.net - devedit.git/blobdiff - templates/viewfile.htm
In file "Output.pm", make use of new methods defined by the template class
[devedit.git] / templates / viewfile.htm
index fdc96b8144ee7d7ce084f2f0b3c8b72b9970dd37..4aaf594e4ee3307bfa6bdc058f6faefa809a5dc5 100644 (file)
@@ -12,7 +12,7 @@
 
 <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&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,7 @@
 </pre>
 </div>
 
-<br>
+{IF editable}<p><a href="{SCRIPT}?command=beginedit&amp;file={FILE_URL}">Edit this file</a></p>{ELSE}<br>{ENDIF}
 
 <hr>
 

patrick-canterino.de