2023-01-04 03:40:19 -08:00
|
|
|
.dropdown-menu.dropdown-menu-end.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.mod?
|
2022-06-23 14:35:33 -07:00
|
|
|
- if moderation_view?
|
2022-10-20 12:13:18 -07:00
|
|
|
= link_to moderation_toggle_unmask_path, class: "dropdown-item", data: { turbo_method: :post } do
|
2022-06-23 14:35:33 -07:00
|
|
|
%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
|
2022-10-20 12:13:18 -07:00
|
|
|
= link_to moderation_toggle_unmask_path, class: "dropdown-item", data: { turbo_method: :post } do
|
2022-06-23 14:35:33 -07:00
|
|
|
%i.fa.fa-toggle-off
|
2022-07-31 13:53:25 -07:00
|
|
|
= t(".unmask.enable")
|
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")
|
2022-12-17 18:21:25 -08:00
|
|
|
- if current_user.has_cached_role?(:administrator)
|
2022-11-20 09:01:00 -08:00
|
|
|
%a.dropdown-item{ href: admin_dashboard_path }
|
|
|
|
%i.fa.fa-fw.fa-cogs
|
|
|
|
= t(".admin")
|
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")
|