2023-10-31 15:32:36 -07:00
|
|
|
- if a.has_reacted
|
|
|
|
= render "reactions/destroy", type: "Answer", target: a
|
|
|
|
- else
|
|
|
|
= render "reactions/create", type: "Answer", target: a
|
2020-05-10 05:22:04 -07:00
|
|
|
- unless display_all
|
2023-03-05 08:17:02 -08:00
|
|
|
%button.btn.btn-link.answerbox__action{ type: :button, name: "ab-comments", data: { a_id: a.id, state: :hidden, selection_hotkey: "x" } }
|
2020-05-02 11:35:28 -07:00
|
|
|
%i.fa.fa-fw.fa-comments
|
2020-05-10 05:22:04 -07:00
|
|
|
%span{ id: "ab-comment-count-#{a.id}" }= a.comment_count
|
2024-02-28 12:51:18 -08:00
|
|
|
.dropdown.d-inline
|
2023-01-04 03:23:47 -08:00
|
|
|
%button.btn.btn-link.answerbox__action{ data: { bs_toggle: :dropdown }, aria: { expanded: false } }
|
2022-07-31 04:51:20 -07:00
|
|
|
%i.fa.fa-fw.fa-share-alt{ title: t(".share.title") }
|
2022-08-21 06:03:42 -07:00
|
|
|
= render "actions/share", answer: a
|
2014-12-26 17:26:51 -08:00
|
|
|
- if user_signed_in?
|
2024-02-28 12:51:18 -08:00
|
|
|
.dropdown.d-inline
|
2024-03-02 12:37:07 -08:00
|
|
|
%button.btn.btn-link.answerbox__action{ data: { bs_toggle: :dropdown }, aria: { expanded: false } }
|
|
|
|
%i.fa.fa-fw.fa-ellipsis
|
2023-11-26 10:32:50 -08:00
|
|
|
= render "actions/answer", answer: a
|