From 237ca321f21e843ca329ba3516fbc1c11b67bc2d Mon Sep 17 00:00:00 2001 From: Guillaume Dott Date: Thu, 19 Nov 2015 12:59:38 +0100 Subject: [PATCH] Improve single movie page --- lib/librarix/views/movie.slim | 6 ++++-- lib/librarix/views/partials/movie/poster.slim | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/librarix/views/movie.slim b/lib/librarix/views/movie.slim index dae49fc..84c01e6 100644 --- a/lib/librarix/views/movie.slim +++ b/lib/librarix/views/movie.slim @@ -2,14 +2,16 @@ = movie.title .movie data-id="#{movie.id}" + h1 = movie.original_title .poster - if movie.poster_path img src="#{poster_url(movie.poster_path, 'w154')}" .informations - h2 - a href="#{url("/movie/#{movie.id}")}" #{movie.original_title} p = movie.release_date p = movie.overview + p + a> href="https://www.themoviedb.org/movie/#{movie.id}" The Movie DB + | (#{movie.vote_average}/10, #{movie.vote_count} votes) .actions - if movie.added? - unless movie.viewed? diff --git a/lib/librarix/views/partials/movie/poster.slim b/lib/librarix/views/partials/movie/poster.slim index f109443..fd72965 100644 --- a/lib/librarix/views/partials/movie/poster.slim +++ b/lib/librarix/views/partials/movie/poster.slim @@ -1,6 +1,7 @@ .poster - if movie.poster_path - img src="#{poster_url(movie.poster_path, 'w154')}" + a href="#{url("/movie/#{movie.id}")}" + img src="#{poster_url(movie.poster_path, 'w154')}" .informations h2 a href="#{url("/movie/#{movie.id}")}" #{movie.original_title}