diff --git a/app/views/cocktails/show.html.erb b/app/views/cocktails/show.html.erb index 84a6e2b..88f3d53 100644 --- a/app/views/cocktails/show.html.erb +++ b/app/views/cocktails/show.html.erb @@ -1,29 +1,32 @@ -
-
+
+

<%= @cocktail.name %>

- <%= cl_image_tag @cocktail.photo.key, height: 300, width: 400, crop: :fill %> +
<%= cl_image_tag @cocktail.photo.key, height: 300, width: 400, crop: :fill %>
-
+

Ingredients

    <% @cocktail.doses.each do |dose| %> -
  • +
  • +
    <%= dose.description %> <%= dose.ingredient.name %> +
    +
    <%= link_to dose_path(dose), method: :delete, data: { confirm: "Are you sure?" } do %> <% end %> +
  • <% end %>
-
+ +
<%= link_to 'Edit name or image', edit_cocktail_path(@cocktail), class: "btn btn-primary" %> <%= link_to 'Add Ingredient', new_cocktail_dose_path(@cocktail), class: "btn btn-primary" %> - - <%= link_to 'Back', cocktails_path, class: "btn btn-primary" %>
diff --git a/app/views/shared/_navbar.html.erb b/app/views/shared/_navbar.html.erb index 84a18c6..b31743b 100644 --- a/app/views/shared/_navbar.html.erb +++ b/app/views/shared/_navbar.html.erb @@ -1,4 +1,4 @@ -