From 147bd9ab05bcadd53ee487ede9a9cd3910695ba7 Mon Sep 17 00:00:00 2001 From: Patrick Koenig Date: Tue, 3 May 2016 14:02:42 -0400 Subject: [PATCH] Add charge button to org page, closes #209 --- app/views/organizations/show.html.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/organizations/show.html.erb b/app/views/organizations/show.html.erb index b01c9d8e..b95aa808 100644 --- a/app/views/organizations/show.html.erb +++ b/app/views/organizations/show.html.erb @@ -41,6 +41,9 @@ <% if can?(:read_basic_details, @organization) %> <%= link_to raw("Tools"), organization_tools_path(@organization), :class => 'btn btn-info' %> <% end %> + <% if can?(:read_all_details, @organization) %> + <%= link_to raw("Charges"), organization_charges_path(@organization), :class => 'btn btn-info' %> + <% end %> <% if can?(:update, @organization) %> <%= link_to t('.edit', :default => t("helpers.links.edit")), edit_organization_path(@organization), :class => 'btn btn-primary' %>