ref: 79993ff1b965f45ad4db46eefc30e99d42e723dd
parent: b2d7a2ac0d16132640b089a6496bfad57ae2a96f
author: uriel <uriel@engel.se.cat-v.org>
date: Sun Mar 16 05:16:39 EDT 2008
Make default dir listing a bit less ugly
--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -98,9 +98,9 @@
if not if ( test -f pub/^$reqpath^.tpl )
template.awk pub/^$reqpath^.tpl | rc $rcargs
if not if(~ $body */index && ~ $#blogDirs 0) {
- echo '<h1>' `{basename `{basename -d $body}}'</h1>'
- echo '<ul>'
- ls -F `{ basename -d $body } | sed $dirfilter' s,^'$sitedir'/(.*),<li><a href="\1">\1</a></li>,'
+ echo '<h1 style="text-transform: capitalize;">' `{basename -d $body|sed -e 's,.*//,,g' -e 's,/$,,' -e 's,/, / ,g' } '</h1>'
+ echo '<ul style="text-transform: capitalize;">'
+ ls -F `{ basename -d $body } | sed -e $dirfilter' s,^'$sitedir'/.*/([^$].*),<li><a href="\1">\1</a></li>,'
echo '</ul>'
}
if not if(~ $#blogDirs 0)