ajout du lien

This commit is contained in:
Antoine WEBER 2015-10-08 12:07:47 +02:00
parent a901355238
commit 673813123e
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ router.get('/:id', function(req, res, next) {
//aprés toute les opération de la base //aprés toute les opération de la base
function(){ function(){
console.log(shows); 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 });
}); });
}); });

View File

@ -12,7 +12,7 @@ block content
each show, i in shows each show, i in shows
tr tr
td td
a(href="/show/#{show.id}")= show.title a(href="/show/#{show.id}/#{channel_id}")= show.title
td= show.year td= show.year
script. script.
$(document).ready(function() { $(document).ready(function() {