The personal finance app for everyone
Revert "Do not show registation link when REQUIRE_INVITE_CODE=true (#1148)" (#1155)
Zach Gollwitzer0db75a019b92
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rbindex abccf57d..b834f54b 100644--- a/app/helpers/application_helper.rb+++ b/app/helpers/application_helper.rb@@ -154,8 +154,4 @@ module ApplicationHelper.map { |_currency, money| format_money(money) }.join(separator)end-- def invite_code_required?- ENV["REQUIRE_INVITE_CODE"] == "true"- endenddiff --git a/app/views/layouts/auth.html.erb b/app/views/layouts/auth.html.erbindex 8c492be1..05c81e68 100644--- a/app/views/layouts/auth.html.erb+++ b/app/views/layouts/auth.html.erb@@ -8,11 +8,9 @@</h2><% if controller_name == "sessions" %>- <% unless invite_code_required? %>- <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" %>- </p>- <% end %>+ <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" %>+ </p><% elsif controller_name == "registrations" %><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" %>