Fix HAML codestyle of navigation partials

This commit is contained in:
Andreas Nedbal 2022-01-22 09:22:04 +01:00 committed by Andreas Nedbal
parent 3bd43f1cf2
commit 2f7d7b2601
2 changed files with 15 additions and 15 deletions

View File

@ -1,5 +1,5 @@
%li.nav-item.dropdown.profile--image-dropdown
%a.nav-link.dropdown-toggle.p-sm-0{ href: '#', data: { toggle: :dropdown } }
%a.nav-link.dropdown-toggle.p-sm-0{ href: "#", data: { toggle: :dropdown } }
%img.avatar-md.d-none.d-sm-inline{ src: current_user.profile_picture.url(:small) }
%span.d-inline.d-sm-none
= current_user.screen_name
@ -8,18 +8,18 @@
%h6.dropdown-header.d-none.d-sm-block= current_user.screen_name
%a.dropdown-item{ href: show_user_profile_path(current_user.screen_name) }
%i.fa.fa-fw.fa-user
= t('views.navigation.show')
= t("views.navigation.show")
%a.dropdown-item{ href: edit_user_registration_path }
%i.fa.fa-fw.fa-cog
= t('views.navigation.settings')
= t("views.navigation.settings")
.dropdown-divider
- if current_user.has_role?(:administrator)
%a.dropdown-item{ href: rails_admin_path }
%i.fa.fa-fw.fa-cogs
= t('views.navigation.admin')
= t("views.navigation.admin")
%a.dropdown-item{ href: sidekiq_web_path }
%i.fa.fa-fw.fa-bar-chart
= t('views.navigation.sidekiq')
= t("views.navigation.sidekiq")
%a.dropdown-item{ href: pghero_path }
%i.fa.fa-fw.fa-database
Database Monitor
@ -30,7 +30,7 @@
- if current_user.mod?
%a.dropdown-item{ href: moderation_path }
%i.fa.fa-fw.fa-gavel
= t('views.navigation.moderation')
= t("views.navigation.moderation")
.dropdown-divider
%h6.dropdown-header.d-none.d-sm-block Feedback
%a.dropdown-item{ href: feedback_features_path }
@ -40,6 +40,6 @@
%i.fa.fa-fw.fa-bug
Bugs
.dropdown-divider
= button_to destroy_user_session_path, method: 'delete', class: 'dropdown-item' do
= button_to destroy_user_session_path, method: "delete", class: "dropdown-item" do
%i.fa.fa-fw.fa-sign-out
= t 'views.sessions.destroy'
= t("views.sessions.destroy")

View File

@ -2,18 +2,18 @@
%h6.dropdown-header.d-none.d-sm-block= current_user.screen_name
%a.dropdown-item{ href: show_user_profile_path(current_user.screen_name) }
%i.fa.fa-fw.fa-user
= t('views.navigation.show')
= t("views.navigation.show")
%a.dropdown-item{ href: edit_user_registration_path }
%i.fa.fa-fw.fa-cog
= t('views.navigation.settings')
= t("views.navigation.settings")
.dropdown-divider
- if current_user.has_role?(:administrator)
%a.dropdown-item{ href: rails_admin_path }
%i.fa.fa-fw.fa-cogs
= t('views.navigation.admin')
= t("views.navigation.admin")
%a.dropdown-item{ href: sidekiq_web_path }
%i.fa.fa-fw.fa-bar-chart
= t('views.navigation.sidekiq')
= t("views.navigation.sidekiq")
%a.dropdown-item{ href: pghero_path }
%i.fa.fa-fw.fa-database
Database Monitor
@ -24,7 +24,7 @@
- if current_user.mod?
%a.dropdown-item{ href: moderation_path }
%i.fa.fa-fw.fa-gavel
= t('views.navigation.moderation')
= t("views.navigation.moderation")
.dropdown-divider
%h6.dropdown-header.d-none.d-sm-block Feedback
%a.dropdown-item{ href: feedback_features_path }
@ -34,6 +34,6 @@
%i.fa.fa-fw.fa-bug
Bugs
.dropdown-divider
= button_to destroy_user_session_path, method: 'delete', class: 'dropdown-item' do
= button_to destroy_user_session_path, method: "delete", class: "dropdown-item" do
%i.fa.fa-fw.fa-sign-out
= t 'views.sessions.destroy'
= t("views.sessions.destroy")