2020-04-26 05:29:23 -07:00
|
|
|
%li.nav-item.dropdown.profile--image-dropdown
|
2022-01-22 00:22:04 -08:00
|
|
|
%a.nav-link.dropdown-toggle.p-sm-0{ href: "#", data: { toggle: :dropdown } }
|
2020-05-10 02:35:10 -07:00
|
|
|
%img.avatar-md.d-none.d-sm-inline{ src: current_user.profile_picture.url(:small) }
|
2020-04-29 09:15:52 -07:00
|
|
|
%span.d-inline.d-sm-none
|
2015-02-12 08:50:13 -08:00
|
|
|
= current_user.screen_name
|
|
|
|
%b.caret
|
2020-04-19 14:13:39 -07:00
|
|
|
.dropdown-menu
|
2020-04-26 07:25:54 -07:00
|
|
|
%h6.dropdown-header.d-none.d-sm-block= current_user.screen_name
|
2020-05-10 02:35:10 -07:00
|
|
|
%a.dropdown-item{ href: show_user_profile_path(current_user.screen_name) }
|
2020-04-19 14:13:39 -07:00
|
|
|
%i.fa.fa-fw.fa-user
|
2022-01-22 00:22:04 -08:00
|
|
|
= t("views.navigation.show")
|
2020-05-10 02:35:10 -07:00
|
|
|
%a.dropdown-item{ href: edit_user_registration_path }
|
2020-04-19 14:13:39 -07:00
|
|
|
%i.fa.fa-fw.fa-cog
|
2022-01-22 00:22:04 -08:00
|
|
|
= t("views.navigation.settings")
|
2020-04-19 14:13:39 -07:00
|
|
|
.dropdown-divider
|
2020-04-19 13:35:58 -07:00
|
|
|
- if current_user.has_role?(:administrator)
|
2020-05-10 02:35:10 -07:00
|
|
|
%a.dropdown-item{ href: rails_admin_path }
|
2020-04-19 14:13:39 -07:00
|
|
|
%i.fa.fa-fw.fa-cogs
|
2022-01-22 00:22:04 -08:00
|
|
|
= t("views.navigation.admin")
|
2020-05-10 02:35:10 -07:00
|
|
|
%a.dropdown-item{ href: sidekiq_web_path }
|
2020-04-19 14:13:39 -07:00
|
|
|
%i.fa.fa-fw.fa-bar-chart
|
2022-01-22 00:22:04 -08:00
|
|
|
= t("views.navigation.sidekiq")
|
2020-05-10 02:35:10 -07:00
|
|
|
%a.dropdown-item{ href: pghero_path }
|
2020-04-19 14:13:39 -07:00
|
|
|
%i.fa.fa-fw.fa-database
|
|
|
|
Database Monitor
|
2020-05-10 02:35:10 -07:00
|
|
|
%a.dropdown-item{ href: announcement_index_path }
|
2020-04-25 04:14:01 -07:00
|
|
|
%i.fa.fa-fw.fa-info
|
|
|
|
Announcements
|
2020-04-19 14:13:39 -07:00
|
|
|
.dropdown-divider
|
2015-02-12 07:37:07 -08:00
|
|
|
- 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
|
2020-05-10 02:35:10 -07:00
|
|
|
%a.dropdown-item{ href: moderation_path }
|
2020-04-19 14:13:39 -07:00
|
|
|
%i.fa.fa-fw.fa-gavel
|
2022-01-22 00:22:04 -08:00
|
|
|
= t("views.navigation.moderation")
|
2020-04-19 14:13:39 -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
|
2020-04-19 14:13:39 -07:00
|
|
|
%i.fa.fa-fw.fa-sign-out
|
2022-01-22 00:22:04 -08:00
|
|
|
= t("views.sessions.destroy")
|