From 79aa4269eccfc6afdb6347b37956b16e7603f0b0 Mon Sep 17 00:00:00 2001 From: Andinus Date: Sat, 11 Jun 2022 15:49:16 +0530 Subject: Handle sub-directories, show error on 0 images --- lib/Crater/Routes/Gallery.rakumod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Crater/Routes/Gallery.rakumod') 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" }; } -- cgit 1.4.1-2-gfad0