Improve top buttons
All checks were successful
CI / scan_ruby (push) Successful in 16s
CI / scan_js (push) Successful in 12s
CI / lint (push) Successful in 13s
CI / test (push) Successful in 27s

This commit is contained in:
sto
2025-06-21 10:07:42 +02:00
parent 5b908fe37c
commit f27b43ef45
3 changed files with 12 additions and 12 deletions

View File

@@ -8,13 +8,13 @@ html
.float-end style="margin-top: -8px;"
nav.navbar.bg-body-primary
- if @current_user.admin
a.navbar-brand href=users_path
a.navbar-brand href=users_path class="btn btn-light" style="margin-right: 0"
= t("nav.users")
a.navbar-brand href=contests_path
a.navbar-brand href=contests_path class="btn btn-light" style="margin-right: 0"
= t("nav.home")
a.navbar-brand href=user_path(@current_user)
a.navbar-brand href=user_path(@current_user) class="btn btn-light"
= t("nav.settings")
= button_to t("nav.log_out"), session_path, method: :delete
= button_to t("nav.log_out"), session_path, method: :delete, class: "btn btn-danger"
css:
.toast {