Skip to content

Commit

Permalink
back button
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisenator committed Oct 19, 2014
1 parent f7508f8 commit 16931d1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/application.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@

#my_movies_list {
min-height: 400px;
}

.movie_button {
margin-top: 25px;
}
23 changes: 20 additions & 3 deletions app/views/movies/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,24 @@
};
</script>

<h1 style="float:left;"><%= @movie.title %></h1>

<%= link_to 'Remove Movie From My Library', 'javascript:removeMovie();', id: 'remove_movie_button', style: ('display:none;' unless @user_movie_join) %>
<%= link_to 'Add Movie To My Library', 'javascript:addMovie();', id: 'add_movie_button', style: ('display:none;' if @user_movie_join) %>
<div class="row">

<div class="col-lg-6">
<h1 style="float:left;"><%= @movie.title %></h1>
</div>
<div class="col-lg-6">
<%= link_to 'Remove Movie From My Library', 'javascript:removeMovie();', id: 'remove_movie_button', style: ('display:none;' unless @user_movie_join), class: 'btn btn-primary right movie_button' %>
<%= link_to 'Add Movie To My Library', 'javascript:addMovie();', id: 'add_movie_button', style: ('display:none;' if @user_movie_join), class: 'btn btn-primary right movie_button' %>
</div>
</div>




<br />
<br />
<br />
<br />
<br />
<%= link_to 'Back to My Movies', movies_path, class: 'btn btn-primary' %>

0 comments on commit 16931d1

Please sign in to comment.