Retrospring/app/views/navigation/dropdown/_profile.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.7 KiB
Plaintext
Raw Normal View History

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
2023-02-07 15:00:50 -08:00
%a.dropdown-item{ href: user_path(current_user), data: { hotkey: "g p" } }
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?
= 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
= 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")
- if current_user.has_cached_role?(:administrator)
%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
- if APP_CONFIG["canny"]
2022-07-31 13:53:25 -07:00
%h6.dropdown-header.d-none.d-sm-block
= t(".feedback.heading")
%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")
.dropdown-divider
%a.dropdown-item{ href: "#", data: { bs_target: "#modal-hotkeys", bs_toggle: "modal", hotkey: "Shift+?,?,Shift+ß" } }
%i.fa.fa-keyboard
= t(".hotkeys")
.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")