houdini/app/views/layouts/_admin_menu.html.erb

42 lines
1.6 KiB
Text
Raw Normal View History

<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
<% if current_role?([:nonprofit_admin,:nonprofit_associate]) %>
<section class='sideNav-section'>
<a class='sideNav-link' href='<%= administered_nonprofit.url%>'>
<%= image_tag 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 %>