Compare commits

...

2 Commits

Author SHA1 Message Date
sto
1dbb495c3b Navbar test
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
2025-03-15 09:58:55 +01:00
sto
e756dbcad9 Use cards for contests 2025-03-15 09:40:08 +01:00
2 changed files with 21 additions and 16 deletions

View File

@ -1,12 +1,16 @@
h4.mt-4 Manage your contests
h4.mb-3 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.mb-4 href=new_contest_path
| Create a new contest
a.btn.btn-primary.mt-4 href=new_contest_path
| Create a new contest
.row.row-cols-1.row-cols-md-3.g-4
- @contests.each do |contest|
.col
.card.h-100
.card-header
= contest.name
.card-body
p.card-text
| Description text comes here.
a.btn.btn-primary href=contest_path(contest)
| Open

View File

@ -4,12 +4,13 @@ html
body
.container.mt-5
.float-end.mt-1.ms-3
= button_to "Log out", session_path, method: :delete
.float-end.mt-2.ms-3
= link_to "Settings", user_path(@current_user)
.float-end.mt-2
= link_to "Home", contests_path
.float-end style="margin-top: -8px;"
nav.navbar.bg-body-primary
a.navbar-brand href=contests_path
| Home
a.navbar-brand href=user_path(@current_user)
| Settings
= button_to "Log out", session_path, method: :delete
h1.mb-4 = @title