2023-10-31 23:32:36 +01:00
|
|
|
- if a.has_reacted
|
|
|
|
= render "reactions/destroy", type: "Answer", target: a
|
|
|
|
- else
|
|
|
|
= render "reactions/create", type: "Answer", target: a
|
2020-05-10 14:22:04 +02:00
|
|
|
- unless display_all
|
2023-03-05 17:17:02 +01: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 20:35:28 +02:00
|
|
|
%i.fa.fa-fw.fa-comments
|
2020-05-10 14:22:04 +02:00
|
|
|
%span{ id: "ab-comment-count-#{a.id}" }= a.comment_count
|
2021-12-26 22:06:52 +01:00
|
|
|
.btn-group
|
2023-01-04 12:23:47 +01:00
|
|
|
%button.btn.btn-link.answerbox__action{ data: { bs_toggle: :dropdown }, aria: { expanded: false } }
|
2022-07-31 13:51:20 +02:00
|
|
|
%i.fa.fa-fw.fa-share-alt{ title: t(".share.title") }
|
2022-08-21 15:03:42 +02:00
|
|
|
= render "actions/share", answer: a
|
2014-12-27 02:26:51 +01:00
|
|
|
- if user_signed_in?
|
2014-12-27 15:31:34 +01:00
|
|
|
.btn-group
|
2023-01-04 12:23:47 +01:00
|
|
|
%button.btn.btn-default.btn-sm.dropdown-toggle{ data: { bs_toggle: :dropdown }, aria: { expanded: false } }
|
2014-12-27 02:26:51 +01:00
|
|
|
%span.caret
|
2023-11-26 19:32:50 +01:00
|
|
|
= render "actions/answer", answer: a
|