|
1 | 1 | <div class="bannerimage d-flex justify-content-center align-items-center"> |
2 | | - <h2> Save your watchlists easily</h2> |
| 2 | + <h2>Save your watchlists easily</h2> |
3 | 3 | </div> |
4 | | - |
5 | 4 | <!-- All users watchlists --> |
6 | 5 | <div class="container"> |
7 | 6 | <div class="watchlist-title mt-2"> |
8 | 7 | <h3>All watchlists</h3> |
9 | 8 | </div> |
10 | | - |
11 | 9 | <div class="movie-grid-index"> |
12 | 10 | <% @lists.each do |list| %> |
13 | | - <div class=""><%= link_to list_path(list) do %> |
14 | | - <div class="card bg-dark text-white cardhover greyfilter"> |
15 | | - <img class="card-img" src="<%= cl_image_path list.photo.key, height: 150, width: 300, crop: :fill %>" alt="Card image"> |
16 | | - <div class="d-flex card-img-overlay justify-content-center align-items-center"> |
17 | | - <h5 class="title"><%= list.name %></h5> |
| 11 | + <div class=""><%= link_to list_path(list) do %> |
| 12 | + <div class="card bg-dark text-white cardhover greyfilter"> |
| 13 | + <img class="card-img" src="<%= cl_image_path list.photo.key, height: 150, width: 300, crop: :fill %>" alt="Card image"> |
| 14 | + <p><%= cl_image_path list.photo.key %></p> |
| 15 | + <div class="d-flex card-img-overlay justify-content-center align-items-center"> |
| 16 | + <h5 class="title"><%= list.name %></h5> |
| 17 | + </div> |
18 | 18 | </div> |
19 | | - </div> |
20 | | - <% end %> |
| 19 | + <% end %> |
21 | 20 | </div> |
22 | 21 | <% end %> |
23 | 22 | </div> |
24 | 23 | </div> |
25 | | - |
26 | 24 | <!-- Own watchlists --> |
27 | 25 | <div class="container"> |
28 | 26 | <div class="watchlist-title mt-2"> |
29 | 27 | <h3>Your watchlists</h3> |
30 | | - |
31 | 28 | <% if user_signed_in? && policy(List).create? %> |
32 | 29 | <%= link_to new_list_path, class: "btn btn-primary" do %> |
33 | 30 | <i class="fas fa-plus"></i> New watchlist |
34 | 31 | <% end %> |
35 | 32 | <% end %> |
36 | 33 | </div> |
37 | | - |
38 | 34 | <% if user_signed_in? %> |
39 | 35 | <% if @self_lists.length > 0 %> |
40 | 36 | <div class="movie-grid-index"> |
41 | 37 | <% @self_lists.each do |list| %> |
42 | | - <div class=""><%= link_to list_path(list) do %> |
43 | | - <div class="card bg-dark text-white cardhover greyfilter"> |
44 | | - <img class="card-img" src="<%= cl_image_path list.photo.key, height: 150, width: 300, crop: :fill %>" alt="Card image"> |
45 | | - <div class="d-flex card-img-overlay justify-content-center align-items-center"> |
46 | | - <h5 class="title"><%= list.name %></h5> |
| 38 | + <div class=""><%= link_to list_path(list) do %> |
| 39 | + <div class="card bg-dark text-white cardhover greyfilter"> |
| 40 | + <img class="card-img" src="<%= cl_image_path list.photo.key, height: 150, width: 300, crop: :fill %>" alt="Card image"> |
| 41 | + <div class="d-flex card-img-overlay justify-content-center align-items-center"> |
| 42 | + <h5 class="title"><%= list.name %></h5> |
| 43 | + </div> |
47 | 44 | </div> |
48 | | - </div> |
49 | | - <% end %> |
| 45 | + <% end %> |
50 | 46 | </div> |
51 | 47 | <% end %> |
52 | 48 | </div> |
|
0 commit comments