diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-02-13 22:52:50 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-02-13 22:52:50 +0200 |
commit | 1f31f222a0131a1bcdcb9318da16d938f39839e0 (patch) | |
tree | 3d0e638bc4108d4114911549284ca5ea6fe09f6d /src/defidx.html | |
parent | e8d8cbf292c9fbc041c346859916db9e7367d4bb (diff) | |
download | fileserv-1f31f222a0131a1bcdcb9318da16d938f39839e0.tar.gz fileserv-1f31f222a0131a1bcdcb9318da16d938f39839e0.tar.bz2 |
Improve index generation
* mimetypes/eval.c (get_file_type): Return "directory",
for directories.
* src/defidx.html: Use $FILETYPE if no icon is available.
* src/idx.c: New variable $FILETYPE.
Diffstat (limited to 'src/defidx.html')
-rw-r--r-- | src/defidx.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/defidx.html b/src/defidx.html index fa3cc66..12bea9f 100644 --- a/src/defidx.html +++ b/src/defidx.html @@ -53,10 +53,10 @@ {% loop %} <tr class="{% $ROWCLASS %}"> <td class="indexcolicon"> - {% if $(icon $FILETYPE) %} - <img src="{% $(icon $FILETYPE) %}" alt="[{% $(alt $FILETYPE) %}]"> + {% if $(icon $MIMETYPE) %} + <img src="{% $(icon $MIMETYPE) %}" alt="[{% $(alt $MIMETYPE) %}]"> {% else %} - [{% $(alt $FILETYPE) %}] + [{% $FILETYPE %}] {% endif %} </td> <td class="indexcolname"> |