From 4b365f12721433189d74774dfc0715eebf956b9a Mon Sep 17 00:00:00 2001 From: judahsan Date: Mon, 10 Aug 2026 02:10:17 +0300 Subject: [PATCH 1/2] fix(ui): remove unused styles and update mail_to helper - Remove unused `arc-btn-ruby` class - Replace `link_to` with `mail_to` (disable Turbo) --- app/views/companies/new.html.erb | 2 +- app/views/devise/confirmations/new.html.erb | 2 +- app/views/devise/passwords/new.html.erb | 2 +- app/views/devise/registrations/new.html.erb | 2 +- app/views/devise/sessions/new.html.erb | 2 +- app/views/devise/unlocks/new.html.erb | 2 +- app/views/landing/code_of_conduct.html.erb | 2 +- app/views/layouts/_footer.html.erb | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/views/companies/new.html.erb b/app/views/companies/new.html.erb index 7de968ab..613defe9 100644 --- a/app/views/companies/new.html.erb +++ b/app/views/companies/new.html.erb @@ -1,4 +1,4 @@ -
+
<%# Back link %> diff --git a/app/views/devise/confirmations/new.html.erb b/app/views/devise/confirmations/new.html.erb index 573a8401..dd2674e9 100644 --- a/app/views/devise/confirmations/new.html.erb +++ b/app/views/devise/confirmations/new.html.erb @@ -31,7 +31,7 @@
<%= f.button :button, t('devise.views.confirmations.new.submit_button'), - class: 'w-full arc-btn-ruby justify-center text-base py-3.5 cursor-pointer' %> + class: 'w-full justify-center text-base py-3.5 cursor-pointer' %>
<% end %> diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb index 35b1121b..d02ff2b5 100644 --- a/app/views/devise/passwords/new.html.erb +++ b/app/views/devise/passwords/new.html.erb @@ -25,7 +25,7 @@
<%= f.button :button, t('devise.views.passwords.new.submit_button'), - class: 'w-full arc-btn-ruby justify-center text-base py-3.5 cursor-pointer' %> + class: 'w-full justify-center text-base py-3.5 cursor-pointer' %>
<% end %> diff --git a/app/views/devise/registrations/new.html.erb b/app/views/devise/registrations/new.html.erb index 1a457d5c..74161a14 100644 --- a/app/views/devise/registrations/new.html.erb +++ b/app/views/devise/registrations/new.html.erb @@ -126,7 +126,7 @@
<%= f.button :button, t('devise.views.registrations.new.submit_button'), - class: 'w-full arc-btn-ruby justify-center text-base py-3.5 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed', + class: 'w-full justify-center text-base py-3.5 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed', disabled: true %>
<% end %> diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index 82cab848..ebe69aab 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -78,7 +78,7 @@
<%= f.button :button, t('devise.views.sessions.new.submit_button'), - class: 'w-full arc-btn-ruby justify-center text-base py-3.5 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed', + class: 'w-full justify-center text-base py-3.5 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed', disabled: true %>
<% end %> diff --git a/app/views/devise/unlocks/new.html.erb b/app/views/devise/unlocks/new.html.erb index 1b805730..a9706be8 100644 --- a/app/views/devise/unlocks/new.html.erb +++ b/app/views/devise/unlocks/new.html.erb @@ -25,7 +25,7 @@
<%= f.button :button, t("devise.unlocks.resend_instructions"), - class: 'w-full arc-btn-ruby justify-center text-base py-3.5 cursor-pointer' %> + class: 'w-full justify-center text-base py-3.5 cursor-pointer' %>
<% end %> diff --git a/app/views/landing/code_of_conduct.html.erb b/app/views/landing/code_of_conduct.html.erb index 25d75805..053e8a49 100644 --- a/app/views/landing/code_of_conduct.html.erb +++ b/app/views/landing/code_of_conduct.html.erb @@ -210,7 +210,7 @@ <%= t('code_of_conduct.cta_desc', default: 'Reach out to our organizers privately. Reports are kept confidential.') %>

- <%= link_to "mailto:organisers@rubycommunity.africa", class: "btn btn-error gap-2 shadow-md hover:shadow-lg transition-all" do %> + <%= mail_to "mailto:organisers@rubycommunity.africa",data: { turbo: false }, class: "btn btn-error gap-2 shadow-md hover:shadow-lg transition-all" do %> <%= t('common.actions.contact_organizers', default: 'Contact Organizers') %> <% end %> diff --git a/app/views/layouts/_footer.html.erb b/app/views/layouts/_footer.html.erb index f4304e76..c92258b3 100644 --- a/app/views/layouts/_footer.html.erb +++ b/app/views/layouts/_footer.html.erb @@ -62,7 +62,7 @@ class: "inline-block text-base-content/70 hover:text-red-500 dark:hover:text-red-400 transition-colors duration-200" %>
  • - <%= link_to t('footer.sponsor'), 'mailto:organisers@rubycommunity.africa', + <%= mail_to t('footer.sponsor'), 'mailto:organisers@rubycommunity.africa', class: "inline-block text-base-content/70 hover:text-red-500 dark:hover:text-red-400 transition-colors duration-200" %>
  • <% if FeatureFlag.find_by(name: 'members').try(:enabled) %> From c13642496bbb498c30258cb87fad60a68d120b7e Mon Sep 17 00:00:00 2001 From: judahsan Date: Wed, 12 Aug 2026 15:56:00 +0300 Subject: [PATCH 2/2] feat(i18n): localize "Built with Ruby" text in Swahili, French, and English - Replace hardcoded "Built with Ruby" text with localized strings in views. --- app/views/companies/index.html.erb | 2 +- app/views/layouts/_footer.html.erb | 5 +++-- config/locales/en.yml | 2 ++ config/locales/fr.yml | 2 ++ config/locales/sw.yml | 2 ++ 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/views/companies/index.html.erb b/app/views/companies/index.html.erb index bd442752..0caf7af9 100644 --- a/app/views/companies/index.html.erb +++ b/app/views/companies/index.html.erb @@ -3,7 +3,7 @@
    - Built with Ruby + <%= t('footer.built_with_ruby') %>

    <%= t('companies.index.title') %>

    <%= t('companies.index.subtitle') %>

    diff --git a/app/views/layouts/_footer.html.erb b/app/views/layouts/_footer.html.erb index c92258b3..901b3638 100644 --- a/app/views/layouts/_footer.html.erb +++ b/app/views/layouts/_footer.html.erb @@ -58,10 +58,11 @@ class: "inline-block text-base-content/70 hover:text-red-500 dark:hover:text-red-400 transition-colors duration-200" %>
  • - <%= link_to "Built with Ruby", built_with_ruby_path, + <%= link_to t('footer.built_with_ruby'), built_with_ruby_path, class: "inline-block text-base-content/70 hover:text-red-500 dark:hover:text-red-400 transition-colors duration-200" %>
  • -
  • + +
  • <%= mail_to t('footer.sponsor'), 'mailto:organisers@rubycommunity.africa', class: "inline-block text-base-content/70 hover:text-red-500 dark:hover:text-red-400 transition-colors duration-200" %>
  • diff --git a/config/locales/en.yml b/config/locales/en.yml index 16b3c9da..771ce6e3 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -333,6 +333,7 @@ en: resources: "Resources" home: "Home" about: "About" + built_with_ruby: "Built with Ruby" about_arc: "About ARC" events: "Events" code_of_conduct: "Code of Conduct" @@ -379,6 +380,7 @@ en: sponsor: "Sponsor" members: "Members" about: "About" + built_with_ruby: "Built with Ruby" contact_us: "Contact Us" code_of_conduct: "Code of conduct" connect: "Connect" diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 5a1d10fd..d43d46ce 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -331,6 +331,7 @@ fr: resources: "Ressources" home: "Accueil" about: "À propos" + built_with_ruby: "Développé avec Ruby" about_arc: "À propos d'ARC" events: "Événements" code_of_conduct: "Code de Conduite" @@ -377,6 +378,7 @@ fr: sponsor: "Sponsor" members: "Membres" about: "À propos" + built_with_ruby: "Développé avec Ruby" contact_us: "Nous contacter" code_of_conduct: "Code de conduite" connect: "Se connecter" diff --git a/config/locales/sw.yml b/config/locales/sw.yml index 64ff8cfe..07251389 100644 --- a/config/locales/sw.yml +++ b/config/locales/sw.yml @@ -330,6 +330,7 @@ sw: resources: "Miradi" home: "Nyumbani" about: "Kuhusu" + built_with_ruby: "Imetengenezwe kwa Ruby" about_arc: "Kuhusu ARC" events: "Matukio" code_of_conduct: "Kanuni za maadili" @@ -375,6 +376,7 @@ sw: sponsor: "Mfadhili" members: "Wanachama" about: "Kuhusu" + built_with_ruby: "Imetengenezwe kwa Ruby" contact_us: "Wasiliana Nasi" code_of_conduct: "Kanuni za maadili" connect: "Unganisha"