]> arthur.barton.de Git - bup.git/commit
cmd/web: hide .dotfiles by default
authorGabriel Filion <lelutin@gmail.com>
Tue, 27 Jul 2010 18:02:36 +0000 (14:02 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 27 Jul 2010 18:15:14 +0000 (14:15 -0400)
commitd63a04bb3e401c18c54302bb3846a0ee8225401d
tree671e96699d189050bd3e30b7a2a3c4bd949ae8a0
parent28fa92f1462f41c1072773c83183d32ca508979e
cmd/web: hide .dotfiles by default

Make all files begining with a dot be hidden by default. The hidden
files can be shown by giving the argument "hidden" with a vlue of 1 in
the URL.

Also, in _compute_dir_contents, remove the line "contents = []" since it
is never used.

Finally add a "Show/Hide hidden files" link on the pages where content
is hidden.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
cmd/web-cmd.py
lib/web/list-directory.html