1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 21:29:38 +02:00

Revert "Do not show registation link when REQUIRE_INVITE_CODE=true (#1148)" (#1155)

This reverts commit 9172eb931b.
This commit is contained in:
Zach Gollwitzer 2024-09-06 11:37:25 -04:00 committed by GitHub
parent ee572d8d1f
commit 0db75a019b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 9 deletions

View file

@ -154,8 +154,4 @@ module ApplicationHelper
.map { |_currency, money| format_money(money) } .map { |_currency, money| format_money(money) }
.join(separator) .join(separator)
end end
def invite_code_required?
ENV["REQUIRE_INVITE_CODE"] == "true"
end
end end

View file

@ -8,11 +8,9 @@
</h2> </h2>
<% if controller_name == "sessions" %> <% if controller_name == "sessions" %>
<% unless invite_code_required? %> <p class="mt-2 text-sm text-center text-gray-600">
<p class="mt-2 text-sm text-center text-gray-600"> <%= t(".or") %> <%= link_to t(".sign_up"), new_registration_path, class: "font-medium text-gray-600 hover:text-gray-400 transition" %>
<%= t(".or") %> <%= link_to t(".sign_up"), new_registration_path, class: "font-medium text-gray-600 hover:text-gray-400 transition" %> </p>
</p>
<% end %>
<% elsif controller_name == "registrations" %> <% elsif controller_name == "registrations" %>
<p class="mt-2 text-sm text-center text-gray-600"> <p class="mt-2 text-sm text-center text-gray-600">
<%= t(".or") %> <%= link_to t(".sign_in"), new_session_path, class: "font-medium text-gray-600 hover:text-gray-400 transition" %> <%= t(".or") %> <%= link_to t(".sign_in"), new_session_path, class: "font-medium text-gray-600 hover:text-gray-400 transition" %>