diff options
author | Andinus <andinus@nand.sh> | 2022-06-11 15:49:16 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2022-06-11 15:49:16 +0530 |
commit | 79aa4269eccfc6afdb6347b37956b16e7603f0b0 (patch) | |
tree | da5dfefba6c53336df25caf66a91406d329c451f /lib/Crater/Routes/Gallery.rakumod | |
parent | 74d75501d6ac26e84f07d25a04a4639bcf1d5f61 (diff) | |
download | crater-79aa4269eccfc6afdb6347b37956b16e7603f0b0.tar.gz |
Handle sub-directories, show error on 0 images
Diffstat (limited to 'lib/Crater/Routes/Gallery.rakumod')
-rw-r--r-- | lib/Crater/Routes/Gallery.rakumod | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Crater/Routes/Gallery.rakumod b/lib/Crater/Routes/Gallery.rakumod index aa3e4b6..655e62e 100644 --- a/lib/Crater/Routes/Gallery.rakumod +++ b/lib/Crater/Routes/Gallery.rakumod @@ -17,9 +17,9 @@ sub gallery-routes( } # Gallery view. - get -> LoggedIn $session { + get -> LoggedIn $session, *@path { template 'gallery.crotmp', { - gallery => $gallery.list(), + gallery => $gallery.list(sub-dir => @path), title => "Gallery" }; } |