diff --git a/app/views/contests/index.html.slim b/app/views/contests/index.html.slim index 3e370d5..862f2ee 100644 --- a/app/views/contests/index.html.slim +++ b/app/views/contests/index.html.slim @@ -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 \ No newline at end of file +a.btn.btn-primary.mt-4 href=new_contest_path + | Create a new contest \ No newline at end of file diff --git a/app/views/contests/show.html.slim b/app/views/contests/show.html.slim index 7de53da..d9343b3 100644 --- a/app/views/contests/show.html.slim +++ b/app/views/contests/show.html.slim @@ -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 \ No newline at end of file +a.btn.btn-primary href=root_path + | Back to all contests \ No newline at end of file diff --git a/app/views/layouts/application.html.slim b/app/views/layouts/application.html.slim index a934ba6..e119546 100644 --- a/app/views/layouts/application.html.slim +++ b/app/views/layouts/application.html.slim @@ -18,4 +18,5 @@ html = javascript_importmap_tags body - = yield + .container.mt-5 + = yield diff --git a/app/views/users/edit.html.slim b/app/views/users/edit.html.slim index b3e1bdc..aa549a3 100644 --- a/app/views/users/edit.html.slim +++ b/app/views/users/edit.html.slim @@ -1,4 +1,3 @@ -.container - h1 Edit settings +h1 Edit settings - = render "form", user: @user \ No newline at end of file += render "form", user: @user \ No newline at end of file diff --git a/app/views/users/index.html.slim b/app/views/users/index.html.slim index 9e552a7..e69de29 100644 --- a/app/views/users/index.html.slim +++ b/app/views/users/index.html.slim @@ -1 +0,0 @@ -.container \ No newline at end of file diff --git a/app/views/users/new.html.slim b/app/views/users/new.html.slim index c90fdb0..a1173f0 100644 --- a/app/views/users/new.html.slim +++ b/app/views/users/new.html.slim @@ -1,4 +1,3 @@ -.container - h1 Create a new user - - = render "form", user: @user \ No newline at end of file +h1 Create a new user + += render "form", user: @user \ No newline at end of file diff --git a/app/views/users/show.html.slim b/app/views/users/show.html.slim index 24da1e2..8822529 100644 --- a/app/views/users/show.html.slim +++ b/app/views/users/show.html.slim @@ -1,9 +1,8 @@ -.container - h1 = @user.username +h1 = @user.username - p - |> Email: - = @user.email_address +p + |> Email: + = @user.email_address - a.btn.btn-primary.mt-4 href=edit_user_path(@user) - | Edit \ No newline at end of file +a.btn.btn-primary.mt-4 href=edit_user_path(@user) + | Edit \ No newline at end of file