houdini/app/views/layouts/_side_nav.html.erb
2018-08-08 13:13:23 -05:00

46 lines
1.5 KiB
Text

<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
<% 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>
<% 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 %>
</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 %>