From 4c5dc297b4bb445d86a94d474632d8300bafd866 Mon Sep 17 00:00:00 2001 From: Julian Herrero Date: Tue, 4 Feb 2020 13:03:38 +0700 Subject: [PATCH] Show edit and delete investments buttons differently In most of the rest of the application the buttons are shown in this way, we do this little adjustment to improve the consistency with the rest of the application --- app/views/users/_budget_investment.html.erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/users/_budget_investment.html.erb b/app/views/users/_budget_investment.html.erb index 4f29c94c1..240a4e5c1 100644 --- a/app/views/users/_budget_investment.html.erb +++ b/app/views/users/_budget_investment.html.erb @@ -3,14 +3,14 @@ <%= link_to budget_investment.title, budget_investment_path(budget_investment.budget, budget_investment) %> - <% if can? :destroy, budget_investment %> - <%= link_to t("shared.delete"), budget_investment_path(budget_investment.budget, budget_investment), - method: :delete, class: "button hollow alert expanded", - data: { confirm: "#{t("users.show.delete_alert")}" } %> - <% end %> <% if can? :update, budget_investment %> <%= link_to t("shared.edit"), edit_budget_investment_path(budget_investment.budget, budget_investment), - class: "button hollow expanded" %> + class: "button hollow" %> + <% end %> + <% if can? :destroy, budget_investment %> + <%= link_to t("shared.delete"), budget_investment_path(budget_investment.budget, budget_investment), + method: :delete, class: "button hollow alert", + data: { confirm: "#{t("users.show.delete_alert")}" } %> <% end %>