Add htacess and icons for fancy indexing.
authorAndre Noll <maan@systemlinux.org>
Tue, 12 Aug 2014 13:01:59 +0000 (15:01 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 24 Aug 2014 18:40:33 +0000 (20:40 +0200)
The apache server on people.tuebingen.mpg.de has FancyIndexing via
mod_autoindex enabled. Let's use its features to provide a nicer view
of the download directory.

This adds two .png icons for tarballs and signatures, respectively.
These icons are listed in the new .htaccess file to instruct apache
to show the icons next to the download links, along with a file
description.

On the old page files were listed alphabetically. So one had to scroll
to the bottom to get to the newest tarball link. FancyIndexing lets us
specify the sort order and we use this feature to show new files first.

NEWS
web/.htaccess [new file with mode: 0644]
web/images/signature.png [new file with mode: 0644]
web/images/tar-icon.png [new file with mode: 0644]

diff --git a/NEWS b/NEWS
index e179240..7c54b5c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ NEWS
 -----------------------------------------------
 
        * Minor cleanups to daemon.c.
+       * New URLs for home page and git services.
 
 Download: ./releases/paraslash-git.tar.bz2
 
diff --git a/web/.htaccess b/web/.htaccess
new file mode 100644 (file)
index 0000000..d6a1222
--- /dev/null
@@ -0,0 +1,12 @@
+<ifmodule mod_autoindex.c>
+       IndexOptions FancyIndexing IconWidth=30 IconsAreLinks
+       IndexOrderDefault Descending Date
+       IndexIgnore ..
+
+       AddIcon ../signature.png *.asc
+       AddDescription "Digital signature" *.asc
+
+       AddIcon ../tar-icon.png *.tgz *.tar.bz2
+       AddDescription "current master snapshot" -git.tar.bz2
+       AddDescription "release tarball" *.tgz *.tar.bz2
+</ifmodule>
diff --git a/web/images/signature.png b/web/images/signature.png
new file mode 100644 (file)
index 0000000..9524182
Binary files /dev/null and b/web/images/signature.png differ
diff --git a/web/images/tar-icon.png b/web/images/tar-icon.png
new file mode 100644 (file)
index 0000000..4b1b472
Binary files /dev/null and b/web/images/tar-icon.png differ