-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6debf6c
commit e4c5c8e
Showing
2 changed files
with
16 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
<div class="row"> | ||
<div id="movie-options"> | ||
<% i = 0 %> | ||
<% unless choices.nil? || choices.empty? %> | ||
<% choices.each do |movie| %> | ||
<a href="<%= movie_path(movie) %>"><img class="poster-thumbnail" src="<%= movie.poster_link %>" | ||
style="left: <%= 17 + i %>px;"></a> | ||
<% i += 250 %> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
<div class="row" id="movie-options"> | ||
<% unless choices.blank? %> | ||
<% choices.each do |movie| %> | ||
<div class="choice"> | ||
<a href="<%= movie_path(movie) %>"><img class="poster-thumbnail" src="<%= movie.poster_link %>"></a> | ||
</div> | ||
<% end %> | ||
<% end %> | ||
</div> |