]> git.p6c8.net - devedit.git/blobdiff - templates/viewfile.htm
- Do not write new file content if the user did not change it
[devedit.git] / templates / viewfile.htm
index 56d65959189279688d9d667818acc07fcee3586a..30db60410f0f98f6507c027d0162c062009a70ba 100644 (file)
@@ -20,7 +20,7 @@
 </pre>
 </div>
 
 </pre>
 </div>
 
-<br>
+{IF editable}<p><a href="{SCRIPT}?command=beginedit&amp;file={FILE}">Edit this file</a></p>{ELSE}<br>{ENDIF}
 
 <hr>
 
 
 <hr>
 

patrick-canterino.de