2023-01-04 12:40:19 +01:00
|
|
|
.dropdown-menu.dropdown-menu-end.profile-dropdown{ id: "rs-#{size}-nav-profile" }
|
2021-08-06 00:36:02 +02:00
|
|
|
%h6.dropdown-header.d-none.d-sm-block= current_user.screen_name
|
2022-07-23 12:06:05 +02:00
|
|
|
%a.dropdown-item{ href: user_path(current_user) }
|
2021-08-06 00:36:02 +02:00
|
|
|
%i.fa.fa-fw.fa-user
|
2022-07-31 22:53:25 +02:00
|
|
|
= t(".profile")
|
2021-08-06 00:36:02 +02:00
|
|
|
%a.dropdown-item{ href: edit_user_registration_path }
|
|
|
|
%i.fa.fa-fw.fa-cog
|
2022-07-31 22:53:25 +02:00
|
|
|
= t(".settings")
|
2021-08-06 00:36:02 +02:00
|
|
|
.dropdown-divider
|
|
|
|
- if current_user.mod?
|
2022-06-23 23:35:33 +02:00
|
|
|
- if moderation_view?
|
2022-10-20 21:13:18 +02:00
|
|
|
= link_to moderation_toggle_unmask_path, class: "dropdown-item", data: { turbo_method: :post } do
|
2022-06-23 23:35:33 +02:00
|
|
|
%i.fa.fa-toggle-on
|
2022-07-31 22:53:25 +02:00
|
|
|
= t(".unmask.disable")
|
2022-06-23 23:35:33 +02:00
|
|
|
- else
|
2022-10-20 21:13:18 +02:00
|
|
|
= link_to moderation_toggle_unmask_path, class: "dropdown-item", data: { turbo_method: :post } do
|
2022-06-23 23:35:33 +02:00
|
|
|
%i.fa.fa-toggle-off
|
2022-07-31 22:53:25 +02:00
|
|
|
= t(".unmask.enable")
|
2022-08-20 21:18:04 +02:00
|
|
|
%a.dropdown-item{ href: moderation_reports_path }
|
2021-08-06 00:36:02 +02:00
|
|
|
%i.fa.fa-fw.fa-gavel
|
2022-07-31 22:53:25 +02:00
|
|
|
= t(".moderation")
|
2022-12-18 03:21:25 +01:00
|
|
|
- if current_user.has_cached_role?(:administrator)
|
2022-11-20 18:01:00 +01:00
|
|
|
%a.dropdown-item{ href: admin_dashboard_path }
|
|
|
|
%i.fa.fa-fw.fa-cogs
|
|
|
|
= t(".admin")
|
2021-08-06 00:36:02 +02:00
|
|
|
.dropdown-divider
|
2022-01-22 10:02:16 +01:00
|
|
|
- if APP_CONFIG["canny"]
|
2022-07-31 22:53:25 +02:00
|
|
|
%h6.dropdown-header.d-none.d-sm-block
|
|
|
|
= t(".feedback.heading")
|
2022-01-22 10:02:16 +01:00
|
|
|
%a.dropdown-item{ href: feedback_bugs_path }
|
|
|
|
%i.fa.fa-fw.fa-bug
|
2022-07-31 22:53:25 +02:00
|
|
|
= t(".feedback.bugs")
|
2022-01-22 14:06:29 +01:00
|
|
|
%a.dropdown-item{ href: feedback_features_path }
|
|
|
|
%i.fa.fa-fw.fa-flask
|
2022-07-31 22:53:25 +02:00
|
|
|
= t(".feedback.features")
|
2022-01-22 10:02:16 +01:00
|
|
|
.dropdown-divider
|
2022-09-04 14:36:14 +02:00
|
|
|
= link_to destroy_user_session_path, data: { turbo_method: :delete }, class: "dropdown-item" do
|
2021-08-06 00:36:02 +02:00
|
|
|
%i.fa.fa-fw.fa-sign-out
|
2022-07-31 22:53:25 +02:00
|
|
|
= t("voc.logout")
|