Events: clarify messages
This commit is contained in:
@@ -6,6 +6,9 @@
|
|||||||
a.btn.btn-primary.mb-4 href=new_contest_path
|
a.btn.btn-primary.mb-4 href=new_contest_path
|
||||||
= t("contests.index.new_contest")
|
= t("contests.index.new_contest")
|
||||||
|
|
||||||
|
.alert.alert-primary role="alert"
|
||||||
|
= t("contests.index.message")
|
||||||
|
|
||||||
.row.row-cols-1.row-cols-md-3.g-4
|
.row.row-cols-1.row-cols-md-3.g-4
|
||||||
- @contests.each do |contest|
|
- @contests.each do |contest|
|
||||||
.col
|
.col
|
||||||
|
|||||||
@@ -31,6 +31,6 @@
|
|||||||
= t("events.index.my_contests_outside_events")
|
= t("events.index.my_contests_outside_events")
|
||||||
.card-body
|
.card-body
|
||||||
.card-text.mb-2
|
.card-text.mb-2
|
||||||
= "#{@contests_without_event} " + t("events.index.contests") if @contests_without_event > 1
|
= "#{@contests_without_event} " + t("events.index.other_contests") if @contests_without_event > 1
|
||||||
= "#{@contests_without_event} " + t("events.index.contest") if @contests_without_event <= 1
|
= "#{@contests_without_event} " + t("events.index.other_contest") if @contests_without_event <= 1
|
||||||
a.stretched-link href=contests_path
|
a.stretched-link href=contests_path
|
||||||
@@ -10,7 +10,7 @@ html
|
|||||||
- if @current_user.admin
|
- if @current_user.admin
|
||||||
a.navbar-brand href=users_path class="btn btn-light" style="margin-right: 0"
|
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 class="btn btn-light" style="margin-right: 0"
|
a.navbar-brand href=events_path class="btn btn-light" style="margin-right: 0"
|
||||||
= t("nav.home")
|
= t("nav.home")
|
||||||
a.navbar-brand href=user_path(@current_user) class="btn btn-light"
|
a.navbar-brand href=user_path(@current_user) class="btn btn-light"
|
||||||
= t("nav.settings")
|
= t("nav.settings")
|
||||||
|
|||||||
@@ -211,6 +211,7 @@ en:
|
|||||||
index:
|
index:
|
||||||
title: Welcome %{username}!
|
title: Welcome %{username}!
|
||||||
manage_contests: Manage my contests
|
manage_contests: Manage my contests
|
||||||
|
message: Here are all contests not associated with any event.
|
||||||
new_contest: Create a new contest
|
new_contest: Create a new contest
|
||||||
modals:
|
modals:
|
||||||
destroy:
|
destroy:
|
||||||
@@ -298,6 +299,8 @@ en:
|
|||||||
my_contests_outside_events: My contests not linked to any event
|
my_contests_outside_events: My contests not linked to any event
|
||||||
new: Create a new event
|
new: Create a new event
|
||||||
new_contest: Add a contest to this event
|
new_contest: Add a contest to this event
|
||||||
|
other_contest: contest
|
||||||
|
other_contests: contests
|
||||||
subtitle: My events
|
subtitle: My events
|
||||||
title: Welcome %{username}!
|
title: Welcome %{username}!
|
||||||
new:
|
new:
|
||||||
@@ -355,7 +358,7 @@ en:
|
|||||||
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: My contests
|
home: Home
|
||||||
settings: My account
|
settings: My account
|
||||||
log_out: Log out
|
log_out: Log out
|
||||||
offlines:
|
offlines:
|
||||||
|
|||||||
@@ -182,6 +182,7 @@ fr:
|
|||||||
index:
|
index:
|
||||||
title: Bienvenue %{username} !
|
title: Bienvenue %{username} !
|
||||||
manage_contests: Mes concours de puzzle
|
manage_contests: Mes concours de puzzle
|
||||||
|
message: Ici se trouvent les concours non associés à des événements
|
||||||
new_contest: Créer un nouveau concours
|
new_contest: Créer un nouveau concours
|
||||||
modals:
|
modals:
|
||||||
destroy:
|
destroy:
|
||||||
@@ -269,6 +270,8 @@ fr:
|
|||||||
my_contests_outside_events: Mes concours non associés à un événement
|
my_contests_outside_events: Mes concours non associés à un événement
|
||||||
new: Créer un nouvel événement
|
new: Créer un nouvel événement
|
||||||
new_contest: Ajouter une épreuve à cet événement
|
new_contest: Ajouter une épreuve à cet événement
|
||||||
|
other_contest: concours
|
||||||
|
other_contests: concours
|
||||||
subtitle: Mes événements
|
subtitle: Mes événements
|
||||||
title: Bienvenue %{username} !
|
title: Bienvenue %{username} !
|
||||||
new:
|
new:
|
||||||
@@ -326,7 +329,7 @@ fr:
|
|||||||
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: Mes concours
|
home: Accueil
|
||||||
settings: Mon compte
|
settings: Mon compte
|
||||||
log_out: Déconnexion
|
log_out: Déconnexion
|
||||||
offlines:
|
offlines:
|
||||||
|
|||||||
Reference in New Issue
Block a user