]> git.p6c8.net - devedit.git/blobdiff - templates/viewfile.htm
Added an option for overwriting files during file upload if they already exist
[devedit.git] / templates / viewfile.htm
index 556e0174fdc8bcb4d025a0244dbf38b1871a7a75..30db60410f0f98f6507c027d0162c062009a70ba 100644 (file)
 
 <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}">Back to {DIR}</a></p>
 
 <div style="background-color:#FFFFE0;border:1px solid black;margin-top:10px;width:100%">
 <pre style="color:#0000C0;">
 {CONTENT}
 </pre>
 </div>
+
+{IF editable}<p><a href="{SCRIPT}?command=beginedit&amp;file={FILE}">Edit this file</a></p>{ELSE}<br>{ENDIF}
+
+<hr>
+
+<table border="0" width="100%">
+<tr>
+<form action="{SCRIPT}">
+<input type="hidden" name="command" value="show">
+<td>Go to directory/file: <input type="text" name="file" value="{FILE}"> <input type="submit" value="Go!"></td>
+</form>
+<td align="right"><a href="{SCRIPT}?command=about" target="_blank"><i>About Dev-Editor</i></a></td>
+</tr>
+</table>
 </body>
 </html>
\ No newline at end of file

patrick-canterino.de