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

42 lines
1.3 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'>
<% if Houdini.terms_and_privacy&.help_url %>
<a class='sideNav-link' href="<%=Houdini.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 %>