houdini/app/views/layouts/_admin_menu.html.erb
2021-01-06 17:15:20 -06:00

42 lines
1.7 KiB
Text

<%- # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%>
<% if current_role?([:nonprofit_admin,:nonprofit_associate]) %>
<section class='sideNav-section'>
<a class='sideNav-link' href='<%= administered_nonprofit.url%>'>
<%= image_tag rails_storage_proxy_url(administered_nonprofit.logo_by_size(:small)), class:"sideNav-profile" %>
<span class='sideNav-text'><%= administered_nonprofit.name %></span>
</a>
<a class='sideNav-link' href='<%= NonprofitPath.dashboard(administered_nonprofit) %>'>
<i class='sideNav-icon icon-camera-graph-2'></i>
<span class='sideNav-text'>Dashboard</span>
</a>
<a class='sideNav-link' href='<%= nonprofits_supporters_path(administered_nonprofit) %>'>
<i class='sideNav-icon icon-contacts-3'></i>
<span class='sideNav-text'>Supporters</span>
</a>
<a class='sideNav-link' href='<%= nonprofits_payments_path(administered_nonprofit) %>'>
<i class='sideNav-icon icon-piggy-bank'></i>
<span class='sideNav-text'>Payments</span>
</a>
<a class='sideNav-link' href='<%= administered_nonprofit.url + '/events' %>'>
<i class='sideNav-icon icon-ticket-2'></i>
<span class='sideNav-text'>Events</span>
</a>
<a class='sideNav-link' href='<%= administered_nonprofit.url + '/campaigns' %>'>
<i class='sideNav-icon icon-thermometer-medium'></i>
<span class='sideNav-text'>Campaigns</span>
</a>
<a class='sideNav-link' href='<%= nonprofits_button_basic_path(administered_nonprofit) %>'>
<i class='sideNav-icon icon-credit-card'></i>
<span class='sideNav-text'>Donate Button</span>
</a>
</section>
<% end %>