Improve top buttons
All checks were successful
CI / scan_ruby (push) Successful in 16s
CI / scan_js (push) Successful in 12s
CI / lint (push) Successful in 13s
CI / test (push) Successful in 27s

This commit is contained in:
sto 2025-06-21 10:07:42 +02:00
parent 5b908fe37c
commit f27b43ef45
3 changed files with 12 additions and 12 deletions

View File

@ -8,13 +8,13 @@ html
.float-end style="margin-top: -8px;" .float-end style="margin-top: -8px;"
nav.navbar.bg-body-primary nav.navbar.bg-body-primary
- if @current_user.admin - if @current_user.admin
a.navbar-brand href=users_path a.navbar-brand href=users_path class="btn btn-light" style="margin-right: 0"
= t("nav.users") = t("nav.users")
a.navbar-brand href=contests_path a.navbar-brand href=contests_path class="btn btn-light" style="margin-right: 0"
= t("nav.home") = t("nav.home")
a.navbar-brand href=user_path(@current_user) a.navbar-brand href=user_path(@current_user) class="btn btn-light"
= t("nav.settings") = t("nav.settings")
= button_to t("nav.log_out"), session_path, method: :delete = button_to t("nav.log_out"), session_path, method: :delete, class: "btn btn-danger"
css: css:
.toast { .toast {

View File

@ -199,10 +199,10 @@ en:
singular: "message" singular: "message"
warning: "You first need to add a puzzle before converting messages to completions." warning: "You first need to add a puzzle before converting messages to completions."
nav: nav:
users: "Users" users: Users
home: "Home" home: My contests
settings: "Settings" settings: Settings
log_out: "Log out" log_out: Log out
puzzles: puzzles:
destroy: destroy:
notice: Puzzle deleted notice: Puzzle deleted

View File

@ -170,10 +170,10 @@ fr:
singular: "message" singular: "message"
warning: "Au moins un puzzle doit être ajouté avant de pouvoir convertir des messages en complétions." warning: "Au moins un puzzle doit être ajouté avant de pouvoir convertir des messages en complétions."
nav: nav:
users: "Utilisateur.ices" users: Utilisateur.ices
home: "Accueil" home: Mes concours
settings: "Paramètres" settings: Paramètres
log_out: "Déconnexion" log_out: Déconnexion
puzzles: puzzles:
destroy: destroy:
notice: Puzzle supprimé notice: Puzzle supprimé