Events: clarify messages
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled

This commit is contained in:
sto
2026-07-28 13:20:29 +02:00
parent d52a058328
commit 17d99a92c0
5 changed files with 14 additions and 5 deletions

View File

@@ -6,6 +6,9 @@
a.btn.btn-primary.mb-4 href=new_contest_path
= t("contests.index.new_contest")
.alert.alert-primary role="alert"
= t("contests.index.message")
.row.row-cols-1.row-cols-md-3.g-4
- @contests.each do |contest|
.col

View File

@@ -31,6 +31,6 @@
= t("events.index.my_contests_outside_events")
.card-body
.card-text.mb-2
= "#{@contests_without_event} " + t("events.index.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_contests") if @contests_without_event > 1
= "#{@contests_without_event} " + t("events.index.other_contest") if @contests_without_event <= 1
a.stretched-link href=contests_path

View File

@@ -10,7 +10,7 @@ html
- if @current_user.admin
a.navbar-brand href=users_path class="btn btn-light" style="margin-right: 0"
= 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")
a.navbar-brand href=user_path(@current_user) class="btn btn-light"
= t("nav.settings")