Improve top buttons
This commit is contained in:
parent
5b908fe37c
commit
f27b43ef45
@ -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 {
|
||||||
|
@ -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
|
||||||
|
@ -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é
|
||||||
|
Loading…
x
Reference in New Issue
Block a user