Improve single movie page

master
Guillaume Dott 2015-11-19 12:59:38 +01:00
parent 1736320d81
commit 237ca321f2
2 changed files with 6 additions and 3 deletions

View File

@ -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?

View File

@ -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}