]> git.p6c8.net - devedit.git/blobdiff - templates/dirlist.htm
- Don't display the file upload link in directory listing if Dev-Editor has no
[devedit.git] / templates / dirlist.htm
index 6f83465ad3cbfd4d5210cb7493da6ce7f285f129..2db1617f13b0772f434c3d8787b76fd02d85681f 100644 (file)
 <td>{DIR} <input type="text" name="newfile"> <input type="submit" value="Create!"></td>
 </form>
 </tr>
-
+{IF dir_writeable}
 <tr>
-<td colspan="2"><a href="{SCRIPT}?command=upload&file={DIR}">Upload a file</a></td>
+<td colspan="2"><a href="{SCRIPT}?command=upload&amp;file={DIR}">Upload a file</a></td>
 </tr>
-</table>
+{ENDIF}</table>
 
 <hr>
 
-<p align="right"><a href="{SCRIPT}?command=about" target="_blank"><i>About Dev-Editor</i></a></p>
+<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="{DIR}"> <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