Skip to content

Commit

Permalink
fix: sign in / up link conditional display in _wrapper.html.erb (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
moustachu authored Jul 26, 2024
1 parent c23334e commit 87d2f76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/layouts/decidim/_wrapper.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@
<% else %>
<div class="topbar__user show-for-medium" data-set="nav-login-holder">
<div class="topbar__user__login js-append">
<%= link_to t("layouts.decidim.header.sign_up"), decidim.new_user_registration_path, class: "sign-up-link" %>
<% if current_organization.sign_up_enabled? %>
<%= link_to t("layouts.decidim.header.sign_up"), decidim.new_user_registration_path, class: "sign-up-link" %>
<% end %>
<%= link_to t("layouts.decidim.header.sign_in"), decidim.new_user_session_path, class: "sign-in-link" %>
</div>
</div>
Expand Down

0 comments on commit 87d2f76

Please sign in to comment.