Set container in layout
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 16:47:50 +01:00
parent 75b79ba53b
commit 1281df11ff
7 changed files with 34 additions and 39 deletions

View File

@@ -1,24 +1,23 @@
.container.mt-5
- if authenticated?
.float-end.ms-3
= button_to "Log out", session_path, method: :delete
.float-end.mt-1
= link_to "Settings", user_path(@user)
- if authenticated?
.float-end.ms-3
= button_to "Log out", session_path, method: :delete
.float-end.mt-1
= link_to "Settings", user_path(@user)
h1 Welcome!
h1 Welcome!
.alert.alert-primary role="alert"
| This is a brand new website!
.alert.alert-primary role="alert"
| This is a brand new website!
h4.mt-4 Manage your contests
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
- @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
a.btn.btn-primary.mt-4 href=new_contest_path
| Create a new contest

View File

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