From 992b632d1a0b6dc6e44daf79bbfceb09f0260770 Mon Sep 17 00:00:00 2001 From: Pitu <7425261+Pitu@users.noreply.github.com> Date: Wed, 4 Oct 2017 02:05:38 -0300 Subject: Added album downloading through front-end --- routes/album.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'routes/album.js') diff --git a/routes/album.js b/routes/album.js index db9dbd0..46f00d3 100644 --- a/routes/album.js +++ b/routes/album.js @@ -38,12 +38,18 @@ routes.get('/a/:identifier', async (req, res, next) => { } } + + let enableDownload = false; + if (config.uploads.generateZips) enableDownload = true; + return res.render('album', { layout: false, title: album.name, count: files.length, thumb, - files + files, + identifier, + enableDownload }); }); -- cgit v1.2.3