Add warning for messages
This commit is contained in:
parent
b8674a126f
commit
f78a082ad3
@ -50,10 +50,10 @@
|
|||||||
.row.mt-5
|
.row.mt-5
|
||||||
.col
|
.col
|
||||||
h4 = t("messages.plural").capitalize
|
h4 = t("messages.plural").capitalize
|
||||||
- if !@puzzles.size
|
- if @puzzles.size == 0
|
||||||
.row
|
.row
|
||||||
.col.alert.alert-danger
|
.col.alert.alert-danger
|
||||||
| You first need to add a puzzle before converting messages to completions
|
= t("messages.warning")
|
||||||
table.table.table-striped.table-hover
|
table.table.table-striped.table-hover
|
||||||
thead
|
thead
|
||||||
tr
|
tr
|
||||||
@ -82,7 +82,7 @@
|
|||||||
td
|
td
|
||||||
= message.text
|
= message.text
|
||||||
td
|
td
|
||||||
- if @puzzles.size
|
- if @puzzles.size > 0
|
||||||
a.btn.btn-sm.btn-secondary href=contest_message_convert_path(@contest, message) style="white-space: nowrap;"
|
a.btn.btn-sm.btn-secondary href=contest_message_convert_path(@contest, message) style="white-space: nowrap;"
|
||||||
= t("helpers.buttons.add_completion")
|
= t("helpers.buttons.add_completion")
|
||||||
- else
|
- else
|
||||||
|
@ -140,6 +140,7 @@ en:
|
|||||||
title: "New completion"
|
title: "New completion"
|
||||||
plural: "messages"
|
plural: "messages"
|
||||||
singular: "message"
|
singular: "message"
|
||||||
|
warning: "You first need to add a puzzle before converting messages to completions."
|
||||||
nav:
|
nav:
|
||||||
users: "Users"
|
users: "Users"
|
||||||
home: "Home"
|
home: "Home"
|
||||||
|
@ -111,6 +111,7 @@ fr:
|
|||||||
title: "Ajout d'une complétion"
|
title: "Ajout d'une complétion"
|
||||||
plural: "messages"
|
plural: "messages"
|
||||||
singular: "message"
|
singular: "message"
|
||||||
|
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: "Accueil"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user