Initial app
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-14 15:36:05 +01:00
parent 8e9bf30547
commit 50280ce389
136 changed files with 3127 additions and 60 deletions

View File

@@ -0,0 +1,22 @@
.container.mt-5
- if authenticated?
.float-end
= button_to "Log out", session_path, method: :delete
h1 Welcome!
.alert.alert-primary role="alert"
| This is a brand new website!
h4.mt-4 Manage your contests
- @contests.each do |contest|
.card.mb-2
.card-body
.card-title
= contest.name
a.btn.btn-primary href=contest_path(contest)
| Open
a.btn.btn-primary.mt-4 href=new_contest_path
| Create a new contest

View File

@@ -0,0 +1,8 @@
h1 Create a new contest
= form_with model: @contest do |form|
div
= form.label :name
= form.text_field :name
div
= form.submit

View File

@@ -0,0 +1,5 @@
.container.mt-5
h1 Contest: "#{@contest.name}"
a.btn.btn-primary href=root_path
| Back to all contests