diff --git a/routes/show_list.js b/routes/show_list.js index a1aa1a2..8dc7c49 100644 --- a/routes/show_list.js +++ b/routes/show_list.js @@ -20,7 +20,7 @@ router.get('/:id', function(req, res, next) { //aprés toute les opération de la base function(){ console.log(shows); - res.render('show_list', { title: 'Liste des séries',shows: shows, channel: req.params.id }); + res.render('show_list', { title: 'Liste des séries',shows: shows, channel_id: req.params.id }); }); }); diff --git a/views/show_list.jade b/views/show_list.jade index 9d67806..e3fd721 100644 --- a/views/show_list.jade +++ b/views/show_list.jade @@ -12,7 +12,7 @@ block content each show, i in shows tr td - a(href="/show/#{show.id}")= show.title + a(href="/show/#{show.id}/#{channel_id}")= show.title td= show.year script. $(document).ready(function() {