Improve single movie page
parent
1736320d81
commit
237ca321f2
|
@ -2,14 +2,16 @@
|
||||||
= movie.title
|
= movie.title
|
||||||
|
|
||||||
.movie data-id="#{movie.id}"
|
.movie data-id="#{movie.id}"
|
||||||
|
h1 = movie.original_title
|
||||||
.poster
|
.poster
|
||||||
- if movie.poster_path
|
- if movie.poster_path
|
||||||
img src="#{poster_url(movie.poster_path, 'w154')}"
|
img src="#{poster_url(movie.poster_path, 'w154')}"
|
||||||
.informations
|
.informations
|
||||||
h2
|
|
||||||
a href="#{url("/movie/#{movie.id}")}" #{movie.original_title}
|
|
||||||
p = movie.release_date
|
p = movie.release_date
|
||||||
p = movie.overview
|
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
|
.actions
|
||||||
- if movie.added?
|
- if movie.added?
|
||||||
- unless movie.viewed?
|
- unless movie.viewed?
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
.poster
|
.poster
|
||||||
- if movie.poster_path
|
- 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
|
.informations
|
||||||
h2
|
h2
|
||||||
a href="#{url("/movie/#{movie.id}")}" #{movie.original_title}
|
a href="#{url("/movie/#{movie.id}")}" #{movie.original_title}
|
||||||
|
|
Loading…
Reference in New Issue