recipe index

This commit is contained in:
Dan Elbert 2017-05-08 11:20:04 -05:00
parent e3f480b476
commit 5b7061e464
2 changed files with 15 additions and 9 deletions

View File

@ -6,6 +6,10 @@ div.table_tags {
width: 275px; width: 275px;
} }
div.recipe_list_controls {
width: 85px;
}
@mixin editor { @mixin editor {
@extend .well; @extend .well;

View File

@ -61,15 +61,17 @@
<td> <td>
<% if current_user? %> <% if current_user? %>
<%= link_to new_recipe_log_path(recipe), class: 'btn btn-xs btn-primary' do %> <div class="recipe_list_controls">
<span class="glyphicon glyphicon-copy"></span> <%= link_to new_recipe_log_path(recipe), class: 'btn btn-xs btn-primary' do %>
<% end %> <span class="glyphicon glyphicon-copy"></span>
<%= link_to edit_recipe_path(recipe), class: 'btn btn-xs btn-primary' do %> <% end %>
<span class="glyphicon glyphicon-pencil"></span> <%= link_to edit_recipe_path(recipe), class: 'btn btn-xs btn-primary' do %>
<% end %> <span class="glyphicon glyphicon-pencil"></span>
<%= link_to recipe, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-xs btn-danger' do %> <% end %>
<span class="glyphicon glyphicon-remove"></span> <%= link_to recipe, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-xs btn-danger' do %>
<% end %> <span class="glyphicon glyphicon-remove"></span>
<% end %>
</div>
<% end %> <% end %>
</td> </td>
</tr> </tr>