- if can? :update, @org
  .btn-group.pull-right.panel-action
    %button.btn.btn-primary.btn-sm.dropdown-toggle{:data => {:toggle => 'dropdown'}}
      I want to  
      %span.caret
    %ul.dropdown-menu{:role => 'menu'}
      %li
        = link_to edit_organization_path(@org) do
          %i.fa.fa-edit.fa-fw
          = " Update this organization"
      - if @org.type_of? :grantee
        %li.divider
        %li
          = link_to edit_budget_organization_path(@org) do
            %i.fa.fa-usd.fa-fw
            = " Update the budget"

- if can? :update, @org or can? :update, Budget
  .btn-group.pull-right.panel-action
    %button.btn.btn-primary.btn-sm.dropdown-toggle{:data => {:toggle => 'dropdown'}}
      I want to  
      %span.caret
    %ul.dropdown-menu{:role => 'menu'}
      - if can? :update, @org
        %li
          = link_to edit_organization_path(@org) do
            %i.fa.fa-edit.fa-fw
            = " Update this organization"
      - if @org.type_of? :grantee and can? :update, Budget
        %li.divider
        %li
          = link_to edit_budget_organization_path(@org) do
            %i.fa.fa-usd.fa-fw
            = " Update the budget"

Allow transit agencies to edit their budget
Allow transit agencies to edit their budget
