X-Git-Url: https://git.p6c8.net/devedit.git/blobdiff_plain/a07b98187cfa4eba82ab509350c1d317e802c1a6..85de18899b48fe39a79a265bff4b1fd0478c5842:/templates/dirlist.htm

diff --git a/templates/dirlist.htm b/templates/dirlist.htm
index 4ce6c19..7338db2 100644
--- a/templates/dirlist.htm
+++ b/templates/dirlist.htm
@@ -14,8 +14,8 @@
 
 <hr>
 
-<table border="0" style="font-family:'Courier New',Courier,monospace;font-size:10pt;">
-{DIRLIST}</table>
+{IF empty}<p><i>This directory is empty or nothing is matching against your wildcard</i></p>{ELSE}<table border="0" style="font-family:'Courier New',Courier,monospace;font-size:10pt;">
+{DIRLIST}</table>{ENDIF}
 
 <hr>
 
@@ -37,21 +37,38 @@
 <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&amp;file={DIR}">Upload a file</a></td>
+<td colspan="2"><a href="{SCRIPT}?command=upload&amp;file={DIR_URL}">Upload a file</a></td>
 </tr>
-</table>
+{ENDIF}</table>
 
 <hr>
 
 <table border="0" width="100%">
 <tr>
+<td>
+<table border="0">
+<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>
+<td>Go to directory/file:</td>
+<td><input type="text" name="file" value="{DIR}"></td>
+<td><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>
+<tr>
+<form action="{SCRIPT}">
+<input type="hidden" name="command" value="show">
+<input type="hidden" name="file" value="{DIR}">
+<td>Filter:</td>
+<td><input type="text" name="filter" value="{FILTER}"></td>
+<td><input type="submit" value="Filter!"></td>
+</form>
+</tr>
+</table>
+</td>
+<td align="right" valign="top"><a href="{SCRIPT}?command=about" target="_blank"><i>About Dev-Editor</i></a></td>
 </tr>
 </table>
 </body>