2022-07-17 11:53:53 -07:00
|
|
|
.dropdown-menu.profile-dropdown{ id: "rs-#{size}-nav-profile" }
|
2021-08-05 15:36:02 -07:00
|
|
|
%h6.dropdown-header.d-none.d-sm-block= current_user.screen_name
|
2022-07-23 03:06:05 -07:00
|
|
|
%a.dropdown-item{ href: user_path(current_user) }
|
2021-08-05 15:36:02 -07:00
|
|
|
%i.fa.fa-fw.fa-user
|
2022-01-22 00:22:04 -08:00
|
|
|
= t("views.navigation.show")
|
2021-08-05 15:36:02 -07:00
|
|
|
%a.dropdown-item{ href: edit_user_registration_path }
|
|
|
|
%i.fa.fa-fw.fa-cog
|
2022-01-22 00:22:04 -08:00
|
|
|
= t("views.navigation.settings")
|
2021-08-05 15:36:02 -07:00
|
|
|
.dropdown-divider
|
|
|
|
- if current_user.has_role?(:administrator)
|
|
|
|
%a.dropdown-item{ href: rails_admin_path }
|
|
|
|
%i.fa.fa-fw.fa-cogs
|
2022-01-22 00:22:04 -08:00
|
|
|
= t("views.navigation.admin")
|
2021-08-05 15:36:02 -07:00
|
|
|
%a.dropdown-item{ href: sidekiq_web_path }
|
|
|
|
%i.fa.fa-fw.fa-bar-chart
|
2022-01-22 00:22:04 -08:00
|
|
|
= t("views.navigation.sidekiq")
|
2021-08-05 15:36:02 -07:00
|
|
|
%a.dropdown-item{ href: pghero_path }
|
|
|
|
%i.fa.fa-fw.fa-database
|
|
|
|
Database Monitor
|
|
|
|
%a.dropdown-item{ href: announcement_index_path }
|
|
|
|
%i.fa.fa-fw.fa-info
|
|
|
|
Announcements
|
|
|
|
.dropdown-divider
|
|
|
|
- if current_user.mod?
|
2022-06-23 14:35:33 -07:00
|
|
|
- if moderation_view?
|
|
|
|
= link_to moderation_toggle_unmask_path, method: :post, class: "dropdown-item" do
|
|
|
|
%i.fa.fa-toggle-on
|
|
|
|
Disable Moderation View
|
|
|
|
- else
|
|
|
|
= link_to moderation_toggle_unmask_path, method: :post, class: "dropdown-item" do
|
|
|
|
%i.fa.fa-toggle-off
|
|
|
|
Enable Moderation View
|
2021-08-05 15:36:02 -07:00
|
|
|
%a.dropdown-item{ href: moderation_path }
|
|
|
|
%i.fa.fa-fw.fa-gavel
|
2022-01-22 00:22:04 -08:00
|
|
|
= t("views.navigation.moderation")
|
2021-08-05 15:36:02 -07:00
|
|
|
.dropdown-divider
|
2022-01-22 01:02:16 -08:00
|
|
|
- if APP_CONFIG["canny"]
|
|
|
|
%h6.dropdown-header.d-none.d-sm-block Feedback
|
|
|
|
%a.dropdown-item{ href: feedback_bugs_path }
|
|
|
|
%i.fa.fa-fw.fa-bug
|
|
|
|
Bugs
|
2022-01-22 05:06:29 -08:00
|
|
|
%a.dropdown-item{ href: feedback_features_path }
|
|
|
|
%i.fa.fa-fw.fa-flask
|
|
|
|
Feature Requests
|
2022-01-22 01:02:16 -08:00
|
|
|
.dropdown-divider
|
2022-01-22 00:22:04 -08:00
|
|
|
= button_to destroy_user_session_path, method: "delete", class: "dropdown-item" do
|
2021-08-05 15:36:02 -07:00
|
|
|
%i.fa.fa-fw.fa-sign-out
|
2022-01-22 00:22:04 -08:00
|
|
|
= t("views.sessions.destroy")
|