Back to all events button
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-30 15:54:06 +02:00
parent 4a4c79ad8a
commit 949f2de4b6
3 changed files with 10 additions and 6 deletions

View File

@@ -1,21 +1,23 @@
.row .row
.col .col
h4.mb-3 style="margin-top: -1rem;" h4.mb-3
= t("events.show.manage_contests") = t("events.show.manage_contests")
a.ms-3.mt-3.btn.btn-primary.mb-4 href=edit_event_path(@event) a.ms-3.btn.btn-primary href=edit_event_path(@event)
= t("events.show.modify") = t("events.show.modify")
a.ms-2.btn.btn-primary href="/events"
= t("events.show.back_to_events")
.float-end .float-end
a.mt-3.btn.btn-primary.mb-4 href=new_contest_path(event: @event.id) a.btn.btn-primary href=new_contest_path(event: @event.id)
= t("events.show.new_contest") = t("events.show.new_contest")
- if @event.shared_scoreboard - if @event.shared_scoreboard
a.btn.btn-success href="/public/event/#{@event.slug}" style="margin-top: -6px;" a.btn.btn-success href="/public/event/#{@event.slug}"
= t("events.show.open_shared_scoreboard") = t("events.show.open_shared_scoreboard")
- else - else
a.btn.btn-success.disabled style="margin-top: -6px;" a.btn.btn-success.disabled
= t("events.show.shared_scoreboard_disabled") = t("events.show.shared_scoreboard_disabled")
.mt-3.row.row-cols-1.row-cols-md-3.g-4 .mt-2.row.row-cols-1.row-cols-md-3.g-4
- @contests.each do |contest| - @contests.each do |contest|
.col .col
css: css:

View File

@@ -308,6 +308,7 @@ en:
notice: Event added notice: Event added
title: New event title: New event
show: show:
back_to_events: Back to all events
manage_contests: Contests in this event manage_contests: Contests in this event
modify: Settings modify: Settings
new_contest: Add a contest to this event new_contest: Add a contest to this event

View File

@@ -279,6 +279,7 @@ fr:
notice: Événement ajouté notice: Événement ajouté
title: Nouvel événement title: Nouvel événement
show: show:
back_to_events: Retour aux événements
manage_contests: Épreuves de cet événement manage_contests: Épreuves de cet événement
modify: Paramètres modify: Paramètres
new_contest: Ajouter une épreuve à cet événement new_contest: Ajouter une épreuve à cet événement