Add public scoreboard slug & URL
Some checks are pending
CI / scan_ruby (push) Waiting to run
CI / scan_js (push) Waiting to run
CI / lint (push) Waiting to run
CI / test (push) Waiting to run

This commit is contained in:
sto
2025-03-22 18:21:13 +01:00
parent d47ebf22ab
commit 9a2a3a6f33
10 changed files with 31 additions and 8 deletions

View File

@@ -4,6 +4,12 @@
.form-floating
= form.text_field :name, autocomplete: "off", class: "form-control"
= form.label :name, class: "required"
.row.mb-3
.col
.form-floating
= form.text_field :slug, autocomplete: "off", class: "form-control"
= form.label :slug, class: "required"
.form-text This will be used for building the public scoreboard URL: https://puzzle-scoreboard.org/public/<slug>.
.row.mb-3
.col
.form-check.form-switch

View File

@@ -1,4 +1,4 @@
.row.mb-2
.row.mb-4
.col
css:
.badges { margin-top: -18px; position: absolute; }
@@ -6,10 +6,16 @@
- @badges.each do |badge|
span.badge.text-bg-info.me-2
= badge
.row.mb-4
.col
.float-end
a.btn.btn-primary href=edit_contest_path(@contest)
| Edit contest
p
|> Public scoreboard:
= link_to root_url + "public/#{@contest.slug}"
.row.mb-4
.col-6
.row