Some contest pages translations
This commit is contained in:
parent
8b0b1c6745
commit
10fa821f19
@ -1,10 +1,10 @@
|
|||||||
.row
|
.row
|
||||||
.col
|
.col
|
||||||
h4.mb-3
|
h4.mb-3
|
||||||
| Manage your contests
|
= t("contests.index.manage_contests")
|
||||||
.float-end
|
.float-end
|
||||||
a.btn.btn-primary.mb-4 href=new_contest_path
|
a.btn.btn-primary.mb-4 href=new_contest_path
|
||||||
| Create a new contest
|
= t("contests.index.new_contest")
|
||||||
|
|
||||||
.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|
|
||||||
|
@ -42,8 +42,7 @@
|
|||||||
.col-6
|
.col-6
|
||||||
.row
|
.row
|
||||||
.col
|
.col
|
||||||
h4
|
h4 = t("contests.show.contestants")
|
||||||
| Contestants
|
|
||||||
table.table.table-striped.table-hover
|
table.table.table-striped.table-hover
|
||||||
thead
|
thead
|
||||||
tr
|
tr
|
||||||
@ -66,4 +65,4 @@
|
|||||||
.row.mt-4
|
.row.mt-4
|
||||||
.col
|
.col
|
||||||
a.btn.btn-primary href=new_contest_contestant_path(@contest)
|
a.btn.btn-primary href=new_contest_contestant_path(@contest)
|
||||||
| Add contestant
|
= t("contests.show.add_participant")
|
||||||
|
@ -9,12 +9,12 @@ html
|
|||||||
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
|
||||||
| Users
|
= t("nav.users")
|
||||||
a.navbar-brand href=contests_path
|
a.navbar-brand href=contests_path
|
||||||
| Home
|
= t("nav.home")
|
||||||
a.navbar-brand href=user_path(@current_user)
|
a.navbar-brand href=user_path(@current_user)
|
||||||
| Settings
|
= t("nav.settings")
|
||||||
= button_to "Log out", session_path, method: :delete
|
= button_to t("nav.log_out"), session_path, method: :delete
|
||||||
|
|
||||||
h1.mb-4 = @title
|
h1.mb-4 = @title
|
||||||
|
|
||||||
|
@ -38,17 +38,26 @@ en:
|
|||||||
title: "Edit contest settings"
|
title: "Edit contest settings"
|
||||||
index:
|
index:
|
||||||
title: "Welcome %{username}!"
|
title: "Welcome %{username}!"
|
||||||
|
manage_contests: "Manage my contests"
|
||||||
|
new_contest: "Create a new contest"
|
||||||
new:
|
new:
|
||||||
title: "New jigsaw puzzle competition"
|
title: "New jigsaw puzzle competition"
|
||||||
scoreboard:
|
scoreboard:
|
||||||
title: "%{name}"
|
title: "%{name}"
|
||||||
show:
|
show:
|
||||||
title: "%{name}"
|
title: "%{name}"
|
||||||
|
add_participant: "Add contestant"
|
||||||
|
contestants: "Contestants"
|
||||||
contestants:
|
contestants:
|
||||||
edit:
|
edit:
|
||||||
title: "Contestant"
|
title: "Contestant"
|
||||||
new:
|
new:
|
||||||
title: "New contestant"
|
title: "New contestant"
|
||||||
|
nav:
|
||||||
|
users: "Users"
|
||||||
|
home: "Home"
|
||||||
|
settings: "Settings"
|
||||||
|
log_out: "Log out"
|
||||||
puzzles:
|
puzzles:
|
||||||
edit:
|
edit:
|
||||||
title: "Edit contest puzzle"
|
title: "Edit contest puzzle"
|
||||||
|
@ -8,18 +8,27 @@ fr:
|
|||||||
edit:
|
edit:
|
||||||
title: "Paramètres du concours"
|
title: "Paramètres du concours"
|
||||||
index:
|
index:
|
||||||
title: "Bienvenue %{username}!"
|
title: "Bienvenue %{username} !"
|
||||||
|
manage_contests: "Mes concours de puzzle"
|
||||||
|
new_contest: "Créer un nouveau concours"
|
||||||
new:
|
new:
|
||||||
title: "Nouveau concours"
|
title: "Nouveau concours"
|
||||||
scoreboard:
|
scoreboard:
|
||||||
title: "%{name}"
|
title: "%{name}"
|
||||||
show:
|
show:
|
||||||
title: "%{name}"
|
title: "%{name}"
|
||||||
|
add_participant: "Ajouter un.e participant.e"
|
||||||
|
contestants: "Participant.e.s"
|
||||||
contestants:
|
contestants:
|
||||||
edit:
|
edit:
|
||||||
title: "Participant"
|
title: "Participant"
|
||||||
new:
|
new:
|
||||||
title: "Nouveau.elle participant.e"
|
title: "Nouveau.elle participant.e"
|
||||||
|
nav:
|
||||||
|
users: "Utilisateur.ices"
|
||||||
|
home: "Accueil"
|
||||||
|
settings: "Paramètres"
|
||||||
|
log_out: "Déconnexion"
|
||||||
puzzles:
|
puzzles:
|
||||||
edit:
|
edit:
|
||||||
title: "Modifier le puzzle"
|
title: "Modifier le puzzle"
|
||||||
|
@ -12,7 +12,7 @@ RSpec.feature "Users", type: :feature do
|
|||||||
it "should not see a link to all users" do
|
it "should not see a link to all users" do
|
||||||
visit root_path
|
visit root_path
|
||||||
|
|
||||||
expect(page).not_to have_content("Users")
|
expect(page).not_to have_content(I18n.t("nav.users"))
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should not be able to see the user list" do
|
it "should not be able to see the user list" do
|
||||||
@ -50,7 +50,7 @@ RSpec.feature "Users", type: :feature do
|
|||||||
it "should see a link to all users" do
|
it "should see a link to all users" do
|
||||||
visit root_path
|
visit root_path
|
||||||
|
|
||||||
expect(page).to have_content("Users")
|
expect(page).to have_content(I18n.t("nav.users"))
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should be able to see the user list" do
|
it "should be able to see the user list" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user