Add warning for messages
All checks were successful
CI / scan_ruby (push) Successful in 16s
CI / scan_js (push) Successful in 13s
CI / lint (push) Successful in 12s
CI / test (push) Successful in 33s

This commit is contained in:
sto
2025-06-18 19:23:44 +02:00
parent b8674a126f
commit f78a082ad3
3 changed files with 5 additions and 3 deletions

View File

@@ -50,10 +50,10 @@
.row.mt-5
.col
h4 = t("messages.plural").capitalize
- if !@puzzles.size
- if @puzzles.size == 0
.row
.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
thead
tr
@@ -82,7 +82,7 @@
td
= message.text
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;"
= t("helpers.buttons.add_completion")
- else