From a901355238124b49c1c10e990cd532c2912ce924 Mon Sep 17 00:00:00 2001 From: Antoine WEBER Date: Wed, 7 Oct 2015 18:21:10 +0200 Subject: [PATCH] utilisation de lhistorique --- routes/movie.js | 4 ++-- views/channel.jade | 2 +- views/movie.jade | 4 ++-- views/show_list.jade | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/routes/movie.js b/routes/movie.js index c5b6e4a..368a512 100644 --- a/routes/movie.js +++ b/routes/movie.js @@ -18,7 +18,7 @@ function humanFileSize(bytes, si) { } /* GET home page. */ -router.get('/:id/:incoming_chan', function(req, res, next) { +router.get('/:id', function(req, res, next) { var config = res.locals.config; var db = config.init_db(); @@ -41,7 +41,7 @@ router.get('/:id/:incoming_chan', function(req, res, next) { row.file.push(ligne); },function(){ - res.render('movie', { title: 'Détail vidéo',movie: row,channel_id: req.params.incoming_chan }); + res.render('movie', { title: 'Détail vidéo',movie: row }); }); }); diff --git a/views/channel.jade b/views/channel.jade index 6f07a9a..0ddfbb6 100644 --- a/views/channel.jade +++ b/views/channel.jade @@ -13,7 +13,7 @@ block content each video, i in videos tr td - a(href="/movie/#{video.id}/#{channel.id}")= video.title + a(href="/movie/#{video.id}")= video.title td= video.duree td= video.year script. diff --git a/views/movie.jade b/views/movie.jade index 156c3f2..16f50c2 100644 --- a/views/movie.jade +++ b/views/movie.jade @@ -3,10 +3,10 @@ extends layout block content h1= movie.title - a(href="/channel/#{channel_id}") Retour à la liste + a(href="#",onclick="window.history.back();") Retour à la liste br br - + label Note p= movie.rating diff --git a/views/show_list.jade b/views/show_list.jade index 73e1c48..9d67806 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}/#{channel}")= show.title + a(href="/show/#{show.id}")= show.title td= show.year script. $(document).ready(function() {