2023-01-04 03:40:19 -08:00
|
|
|
.dropdown-menu.dropdown-menu-end{ role: :menu }
|
2023-02-16 15:35:03 -08:00
|
|
|
- if subscribed_answer_ids&.include?(answer.id)
|
2023-10-24 17:52:38 -07:00
|
|
|
= render "subscriptions/destroy", answer: answer
|
2022-08-21 06:03:42 -07:00
|
|
|
- else
|
2023-10-24 17:52:38 -07:00
|
|
|
= render "subscriptions/create", answer: answer
|
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
|
2023-02-06 23:32:25 -08:00
|
|
|
= render "actions/pin", answer:
|
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")
|