2018-03-25 17:20:54 +00:00
|
|
|
<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
|
2018-03-25 17:30:42 +00:00
|
|
|
<% unless yield(:side_nav_hidden) == 'hidden' || !current_user %>
|
|
|
|
|
|
|
|
<aside class='sideNav-toggle'>
|
|
|
|
<!--= on 'click' toggle_side_nav -->
|
|
|
|
<!--= add_class_if (side_nav_is_open) 'is-togglingOpen' -->
|
|
|
|
<i class='fa fa-bars' title='Show Menu'></i>
|
|
|
|
<i class='fa fa-times' title='Hide Menu'></i>
|
|
|
|
</aside>
|
|
|
|
|
|
|
|
<nav class="sideNav" >
|
|
|
|
<!--= add_class_if side_nav_is_open 'is-open' -->
|
|
|
|
|
|
|
|
<% unless current_role? [:nonprofit_admin,:nonprofit_associate] %>
|
|
|
|
<section class='sideNav-section'>
|
|
|
|
<a class='sideNav-commitchangeLogo' href='<%= root_path %>' title='Go To Home Page'>
|
|
|
|
<%= render 'common/logo' %>
|
|
|
|
</a>
|
|
|
|
</section>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= render 'layouts/admin_menu' %>
|
|
|
|
|
|
|
|
<%= render 'layouts/user_menu' %>
|
|
|
|
|
|
|
|
<% unless current_role?([:nonprofit_admin,:nonprofit_associate]) %>
|
|
|
|
<section class='sideNav-section'>
|
|
|
|
<a class='sideNav-link' href='/explore'>
|
|
|
|
<i class='sideNav-icon icon-binocular'></i>
|
|
|
|
<span class='sideNav-text'>Explore</span>
|
|
|
|
</a>
|
2018-08-08 15:40:53 +00:00
|
|
|
<% if Settings.terms_and_privacy&.help_url %>
|
|
|
|
<a class='sideNav-link' href="<%=Settings.terms_and_privacy.help_url %>">
|
|
|
|
<i class='sideNav-icon icon-bubble-ask-2'></i>
|
|
|
|
<span class='sideNav-text'>Help</span>
|
|
|
|
</a>
|
|
|
|
<% end %>
|
2018-03-25 17:30:42 +00:00
|
|
|
</section>
|
|
|
|
<% end %>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<div class='sideNav-scrim'>
|
|
|
|
<!--= on 'click' (def 'side_nav_is_open' false) -->
|
|
|
|
<!--= add_class_if side_nav_is_open 'is-showing' -->
|
|
|
|
</div>
|
|
|
|
<% end %>
|