Implement shared scoreboard UI
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-31 13:02:24 +02:00
parent fe4af6d63c
commit 8a003a9731
4 changed files with 16 additions and 5 deletions

View File

@@ -46,8 +46,12 @@ html
h1.mb-4
- if @contest && @contest.id.present?
- if active_page("/public") == "active" && @action_path
= @contest.name
.float-end style="margin-top: -5px;" id="scoreboard-switches"
- if active_page("/public/event/") == "active"
= @contest.event.name
= render "event_nav"
- else
= @contest.name
.float-end style="margin-top: #{active_page("/public/event/") == "active" ? "-18px" : "-5px"};" id="scoreboard-switches"
.d-inline-flex.align-items-center
.ms-4.form-check.form-switch style="font-size: 16px; font-weight: 300;"
input.form-check-input type="checkbox" id="refresh-checkbox"