Retrospring/app/views/actions/_answer.html.haml

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

20 lines
797 B
Plaintext
Raw Normal View History

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)
= render "subscriptions/destroy", answer: answer
- else
= render "subscriptions/create", answer: answer
- 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
= render "actions/pin", answer:
- if current_user.admin?
%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")