Add extra nav for settings & clean header buttons
This commit is contained in:
@@ -5,7 +5,7 @@ html
|
||||
body
|
||||
.container.mt-5
|
||||
- if @current_user
|
||||
.float-end style="margin-top: -8px;"
|
||||
.float-end style="margin-top: -5px;"
|
||||
nav.navbar.bg-body-primary
|
||||
- if @current_user.admin
|
||||
a.navbar-brand href=users_path class="btn btn-light" style="margin-right: 0"
|
||||
@@ -43,12 +43,19 @@ html
|
||||
.toast-body
|
||||
= msg
|
||||
|
||||
h1.mb-4
|
||||
h1.mb-5
|
||||
- if @contest && @contest.id.present?
|
||||
= @contest.name
|
||||
- if active_page("/public") == "active" && @action_path
|
||||
a.ms-4.btn.btn-primary href=@action_path style="margin-top: -6px"
|
||||
= t("helpers.buttons.refresh")
|
||||
- if active_page("/contests") == "active"
|
||||
- if @contest.public
|
||||
a.ms-4.btn.btn-success href="/public/#{@contest.slug}" style="margin-top: -6px;"
|
||||
= t("contests.show.open_public_scoreboard")
|
||||
- else
|
||||
a.ms-4.btn.btn-success.disabled style="margin-top: -6px;"
|
||||
= t("contests.show.public_scoreboard_disabled")
|
||||
- else
|
||||
= @title
|
||||
|
||||
|
||||
Reference in New Issue
Block a user