From d0e8f723117cc311389524fd3e3e73a4b0fe5626 Mon Sep 17 00:00:00 2001 From: Milan Cvetkovic Date: Tue, 19 Mar 2024 12:38:15 +0000 Subject: [PATCH] Add tabbed navigation for signup/login screens --- app/views/sessions/new.html.erb | 11 +++++++++-- app/views/users/blocked.html.erb | 9 ++++++++- app/views/users/new.html.erb | 9 ++++++++- config/locales/en.yml | 2 ++ 4 files changed, 27 insertions(+), 4 deletions(-) diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index b64801e16..90611f214 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -7,8 +7,15 @@ <% content_for :heading do %>
-

<%= t ".heading" %>

-
+ +
<% end %>
diff --git a/app/views/users/blocked.html.erb b/app/views/users/blocked.html.erb index 0decb13c0..a97d9ba8d 100644 --- a/app/views/users/blocked.html.erb +++ b/app/views/users/blocked.html.erb @@ -1,7 +1,14 @@ <% content_for :heading_class, "p-0 mw-100" %> <% content_for :heading do %>
-

<%= t "users.new.title" %>

+
<% end %> diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index 918b315e8..c3020180c 100644 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb @@ -7,7 +7,14 @@ <% content_for :heading do %>
-

<%= t ".title" %>

+
<% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 4046b8068..677ff618c 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1847,6 +1847,7 @@ en: sessions: new: title: "Log in" + tab_title: "Log in" heading: "Log in" email or username: "Email Address or Username" password: "Password" @@ -2728,6 +2729,7 @@ en: users: new: title: "Sign Up" + tab_title: "Sign up" no_auto_account_create: "Unfortunately we are not currently able to create an account for you automatically." please_contact_support_html: 'Please contact %{support_link} to arrange for an account to be created - we will try and deal with the request as quickly as possible.' support: support -- 2.39.5