X-Git-Url: https://git.p6c8.net/devedit.git/blobdiff_plain/5dc063ebfce6e78b69fa41bb4a2475fd726ee728..7ccfda558e4118708d93bde4098fc1552b03a545:/templates/viewfile.htm diff --git a/templates/viewfile.htm b/templates/viewfile.htm index 0de0bc6..30db604 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&file={DIR}">Back to {DIR}</a></p> +<p><a href="{SCRIPT}?command=show&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;"> @@ -20,6 +20,18 @@ </pre> </div> -<p align="right"><a href="{SCRIPT}?command=about" target="_blank"><i>About Dev-Editor</i></a></p> +{IF editable}<p><a href="{SCRIPT}?command=beginedit&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