From 673813123e9a55226207f77b337f46982952e729 Mon Sep 17 00:00:00 2001 From: Antoine WEBER Date: Thu, 8 Oct 2015 12:07:47 +0200 Subject: [PATCH] ajout du lien --- routes/show_list.js | 2 +- views/show_list.jade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() {