Merge in werc.cat-v.org updates and css changes.

This commit is contained in:
Uriel 2009-01-22 09:24:10 +01:00
commit 04f6550a53
6 changed files with 53 additions and 12 deletions

View file

@ -79,6 +79,7 @@ fn txt_handler {
fn dir_listing_handler {
d=`{basename -d $1}
# XXX $d is based on $local_path, but should display only req_path here.
echo $d|sed 's,.*//,,g; s,/$,,; s,/, / ,g; s,.*,<h1 class="dir-list-head">&</h1> <ul class="dir-list">,'
# Symlinks suck: '/.' forces ls to list the linked dir if $d is a symlink.
ls -F $dir_listing_ls_opts $d/. | sed $dirfilter$dirclean' s,.*/([^/]+/?)$,<li><a href="\1">\1</a></li>,'