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-07-31 13:53:25 -07:00
|
|
|
= t(".profile")
|
2021-08-05 15:36:02 -07:00
|
|
|
%a.dropdown-item{ href: edit_user_registration_path }
|
|
|
|
%i.fa.fa-fw.fa-cog
|
2022-07-31 13:53:25 -07:00
|
|
|
= t(".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-07-31 13:53:25 -07:00
|
|
|
= t(".admin")
|
2021-08-05 15:36:02 -07:00
|
|
|
%a.dropdown-item{ href: sidekiq_web_path }
|
|
|
|
%i.fa.fa-fw.fa-bar-chart
|
2022-07-31 13:53:25 -07:00
|
|
|
= t(".sidekiq")
|
2021-08-05 15:36:02 -07:00
|
|
|
%a.dropdown-item{ href: pghero_path }
|
|
|
|
%i.fa.fa-fw.fa-database
|
2022-07-31 13:53:25 -07:00
|
|
|
= t(".pghero")
|
2021-08-05 15:36:02 -07:00
|
|
|
%a.dropdown-item{ href: announcement_index_path }
|
|
|
|
%i.fa.fa-fw.fa-info
|
2022-07-31 13:53:25 -07:00
|
|
|
= t(".announcements")
|
2021-08-05 15:36:02 -07:00
|
|
|
.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
|
2022-07-31 13:53:25 -07:00
|
|
|
= t(".unmask.disable")
|
2022-06-23 14:35:33 -07:00
|
|
|
- else
|
|
|
|
= link_to moderation_toggle_unmask_path, method: :post, class: "dropdown-item" do
|
|
|
|
%i.fa.fa-toggle-off
|
2022-07-31 13:53:25 -07:00
|
|
|
= t(".unmask.enable")
|
2022-08-13 11:01:13 -07:00
|
|
|
%a.dropdown-item{ href: mod_anon_block_index_path }
|
|
|
|
%i.fa.fa-fw.fa-volume-off
|
2022-08-13 11:01:22 -07:00
|
|
|
= t(".site_wide_blocks")
|
2022-08-20 12:18:04 -07:00
|
|
|
%a.dropdown-item{ href: moderation_reports_path }
|
2021-08-05 15:36:02 -07:00
|
|
|
%i.fa.fa-fw.fa-gavel
|
2022-07-31 13:53:25 -07:00
|
|
|
= t(".moderation")
|
2021-08-05 15:36:02 -07:00
|
|
|
.dropdown-divider
|
2022-01-22 01:02:16 -08:00
|
|
|
- if APP_CONFIG["canny"]
|
2022-07-31 13:53:25 -07:00
|
|
|
%h6.dropdown-header.d-none.d-sm-block
|
|
|
|
= t(".feedback.heading")
|
2022-01-22 01:02:16 -08:00
|
|
|
%a.dropdown-item{ href: feedback_bugs_path }
|
|
|
|
%i.fa.fa-fw.fa-bug
|
2022-07-31 13:53:25 -07:00
|
|
|
= t(".feedback.bugs")
|
2022-01-22 05:06:29 -08:00
|
|
|
%a.dropdown-item{ href: feedback_features_path }
|
|
|
|
%i.fa.fa-fw.fa-flask
|
2022-07-31 13:53:25 -07:00
|
|
|
= t(".feedback.features")
|
2022-01-22 01:02:16 -08:00
|
|
|
.dropdown-divider
|
2022-09-04 05:36:14 -07:00
|
|
|
= link_to destroy_user_session_path, data: { turbo_method: :delete }, class: "dropdown-item" do
|
2021-08-05 15:36:02 -07:00
|
|
|
%i.fa.fa-fw.fa-sign-out
|
2022-07-31 13:53:25 -07:00
|
|
|
= t("voc.logout")
|