houdini/app/views/components/_footer_sub.html.erb
2020-06-15 10:26:57 -05:00

30 lines
1.1 KiB
Text

<%- # 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 -%>
<!-- partial start: components/_footer_sub -->
<section class='globalFooter-sub'>
<div class='container'>
<span <%= !current_user ? "style='display: block;'" : ""%>>
<span class='globalFooter-sub-items'>
<span>
<span class='globalFooter-sub-item'>&copy; <%= Time.current.year %> <%= Houdini.general.name %></span>
<span class='globalFooter-sub-item'>
<% if current_user %>
<% if Houdini.terms_and_privacy&.help_url %><span><%= link_to("Help", Houdini.terms_and_privacy.help_url) %></span><% end %>
<% else %>
<% if Houdini.terms_and_privacy&.about_url %><span><%= link_to("About", Houdini.terms_and_privacy.about_url) %></span><% end %>
<% end %>
</span>
<span class='globalFooter-sub-item'>
<%= link_to( t("footer.terms_and_privacy"), :static_terms_and_privacy) %>
</span>
</span>
</span>
</span>
</div>
</section>
<!-- partial start: components/_footer_sub -->