2023-01-04 03:40:19 -08:00
|
|
|
.dropdown-menu.dropdown-menu-end{ role: :menu }
|
2022-08-21 06:03:42 -07:00
|
|
|
- if Subscription.is_subscribed(current_user, answer)
|
|
|
|
-# fun joke should subscribe?
|
|
|
|
%a.dropdown-item{ href: "#", data: { a_id: answer.id, action: "ab-submarine", torpedo: "no" } }
|
|
|
|
%i.fa.fa-fw.fa-anchor
|
2022-08-21 07:55:09 -07:00
|
|
|
= t("voc.unsubscribe")
|
2022-08-21 06:03:42 -07:00
|
|
|
- else
|
|
|
|
%a.dropdown-item{ href: "#", data: { a_id: answer.id, action: "ab-submarine", torpedo: "yes" } }
|
|
|
|
%i.fa.fa-fw.fa-anchor
|
2022-08-21 07:55:09 -07:00
|
|
|
= t("voc.subscribe")
|
2022-08-21 06:03:42 -07:00
|
|
|
- if privileged? answer.user
|
|
|
|
%a.dropdown-item.text-danger{ href: "#", data: { a_id: answer.id, action: "ab-destroy" } }
|
|
|
|
%i.fa.fa-fw.fa-trash-o
|
|
|
|
= t(".return")
|
|
|
|
- unless answer.user == current_user
|
|
|
|
%a.dropdown-item{ href: "#", data: { a_id: answer.id, action: "ab-report" } }
|
|
|
|
%i.fa.fa-fw.fa-exclamation-triangle
|
|
|
|
= t("voc.report")
|
2023-01-29 12:01:03 -08:00
|
|
|
- else
|
|
|
|
- if answer.pinned?
|
|
|
|
%a.dropdown-item{ href: "#", data: { a_id: answer.id, action: "ab-unpin" } }
|
|
|
|
%i.fa.fa-fw.fa-thumbtack
|
|
|
|
= t(".unpin")
|
|
|
|
- else
|
|
|
|
%a.dropdown-item{ href: "#", data: { a_id: answer.id, action: "ab-pin" } }
|
|
|
|
%i.fa.fa-fw.fa-thumbtack
|
|
|
|
= t(".pin")
|
2022-08-21 06:12:12 -07:00
|
|
|
- if current_user.admin?
|
2022-08-21 06:03:42 -07:00
|
|
|
%a.dropdown-item{ href: rails_admin_path_for_resource(answer), target: "_blank" }
|
|
|
|
%i.fa.fa-fw.fa-gears
|
2022-08-21 06:10:17 -07:00
|
|
|
= t("voc.view_in_rails_admin")
|