From 5b7061e4646f818f1ce66f6e5f88050406dbcb64 Mon Sep 17 00:00:00 2001 From: Dan Elbert Date: Mon, 8 May 2017 11:20:04 -0500 Subject: [PATCH] recipe index --- app/assets/stylesheets/recipes.scss | 4 ++++ app/views/recipes/index.html.erb | 20 +++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/app/assets/stylesheets/recipes.scss b/app/assets/stylesheets/recipes.scss index 9104b9c..647c0b5 100644 --- a/app/assets/stylesheets/recipes.scss +++ b/app/assets/stylesheets/recipes.scss @@ -6,6 +6,10 @@ div.table_tags { width: 275px; } +div.recipe_list_controls { + width: 85px; +} + @mixin editor { @extend .well; diff --git a/app/views/recipes/index.html.erb b/app/views/recipes/index.html.erb index 2688275..dc83ce2 100644 --- a/app/views/recipes/index.html.erb +++ b/app/views/recipes/index.html.erb @@ -61,15 +61,17 @@ <% if current_user? %> - <%= link_to new_recipe_log_path(recipe), class: 'btn btn-xs btn-primary' do %> - - <% end %> - <%= link_to edit_recipe_path(recipe), class: 'btn btn-xs btn-primary' do %> - - <% end %> - <%= link_to recipe, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-xs btn-danger' do %> - - <% end %> +
+ <%= link_to new_recipe_log_path(recipe), class: 'btn btn-xs btn-primary' do %> + + <% end %> + <%= link_to edit_recipe_path(recipe), class: 'btn btn-xs btn-primary' do %> + + <% end %> + <%= link_to recipe, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-xs btn-danger' do %> + + <% end %> +
<% end %>