diff options
| author | Pitu <[email protected]> | 2017-10-04 02:05:38 -0300 |
|---|---|---|
| committer | Pitu <[email protected]> | 2017-10-04 02:05:38 -0300 |
| commit | 992b632d1a0b6dc6e44daf79bbfceb09f0260770 (patch) | |
| tree | c2c19afd3d22b806c95e71f0c0bb7c33f733e80c /routes/album.js | |
| parent | Missing semicolon (diff) | |
| download | host.fuwn.me-992b632d1a0b6dc6e44daf79bbfceb09f0260770.tar.xz host.fuwn.me-992b632d1a0b6dc6e44daf79bbfceb09f0260770.zip | |
Added album downloading through front-end
Diffstat (limited to 'routes/album.js')
| -rw-r--r-- | routes/album.js | 8 |
1 files changed, 7 insertions, 1 deletions
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 }); }); |