ajout du lien
This commit is contained in:
parent
a901355238
commit
673813123e
|
@ -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 });
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue