aboutsummaryrefslogtreecommitdiff
path: root/routes/album.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/album.js')
-rw-r--r--routes/album.js8
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
});
});