Retrospring/app/views/answerbox/_actions.html.haml

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

17 lines
968 B
Plaintext
Raw Normal View History

2023-03-05 09:46:15 -08:00
%button.btn.btn-link.answerbox__action{ type: :button, name: "ab-smile", data: { a_id: a.id, action: current_user&.smiled?(a) ? :unsmile : :smile, selection_hotkey: "s" }, disabled: !user_signed_in? }
%i.fa.fa-fw.fa-smile-o
2023-10-22 10:48:04 -07:00
%span{ id: "ab-smile-count-#{a.id}" }= a.smile_count
2020-05-10 05:22:04 -07:00
- unless display_all
%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
2021-12-26 13:06:52 -08:00
.btn-group
%button.btn.btn-link.answerbox__action{ data: { bs_toggle: :dropdown }, aria: { expanded: false } }
%i.fa.fa-fw.fa-share-alt{ title: t(".share.title") }
= render "actions/share", answer: a
2014-12-26 17:26:51 -08:00
- if user_signed_in?
.btn-group
%button.btn.btn-default.btn-sm.dropdown-toggle{ data: { bs_toggle: :dropdown }, aria: { expanded: false } }
2014-12-26 17:26:51 -08:00
%span.caret
2023-02-16 15:35:03 -08:00
= render "actions/answer", answer: a, subscribed_answer_ids: