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

44 lines
1.4 KiB
Text
Raw Normal View History

2020-06-12 20:03:43 +00:00
<%- # 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 -%>
<% 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.hoster.terms_and_privacy&.help_url %>
2020-06-10 22:31:47 +00:00
<a class='sideNav-link' href="<%=Houdini.terms_and_privacy.help_url %>">
2018-08-08 15:40:53 +00:00
<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 %>