From e65d639ca634f6d13312c73d60d6c17624520cf1 Mon Sep 17 00:00:00 2001 From: sto Date: Wed, 14 May 2025 18:09:36 +0200 Subject: [PATCH] Improve add buttons --- app/views/contests/show.html.slim | 4 ++-- config/locales/en.yml | 1 + config/locales/fr.yml | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/contests/show.html.slim b/app/views/contests/show.html.slim index 588795f..b0d35d7 100644 --- a/app/views/contests/show.html.slim +++ b/app/views/contests/show.html.slim @@ -20,7 +20,7 @@ h4 = t("puzzles.plural").capitalize a.ms-3.btn.btn-primary href=new_contest_puzzle_path(@contest) style="margin-top: -3px" - = t("contests.show.add_puzzle") + | + #{t("helpers.buttons.add")} table.table.table-striped.table-hover thead tr @@ -71,7 +71,7 @@ h4 = t("contestants.plural").capitalize a.ms-3.btn.btn-primary href=new_contest_contestant_path(@contest) style="margin-top: -3px" - = t("contests.show.add_participant") + | + #{t("helpers.buttons.add")} table.table.table-striped.table-hover thead tr diff --git a/config/locales/en.yml b/config/locales/en.yml index b47dfe4..3b14284 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -76,6 +76,7 @@ en: plural: "teams" helpers: buttons: + add: "Add" create: "Create" save: "Save" messages: diff --git a/config/locales/fr.yml b/config/locales/fr.yml index c8bd958..b206f75 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -47,6 +47,7 @@ fr: plural: "équipes" helpers: buttons: + add: "Ajouter" create: "Créer" save: "Modifier" messages: