mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-12 11:33:37 +01:00
14 lines
640 B
Text
14 lines
640 B
Text
|
- if type == "Answer"
|
||
|
= button_to create_reactions_path(id: target.id, username: target.user.screen_name),
|
||
|
form: { class: "d-inline-block", id: "reaction-#{type}-#{target.id}" },
|
||
|
class: "btn btn-link answerbox__action smile" do
|
||
|
%i.fa.fa-fw.fa-smile-o
|
||
|
%span= target.smile_count
|
||
|
|
||
|
- if type == "Comment"
|
||
|
= button_to create_comment_reactions_path(id: target.id, username: target.user.screen_name),
|
||
|
form: { class: "d-inline-block", id: "reaction-#{type}-#{target.id}" },
|
||
|
class: "btn btn-link answerbox__action smile" do
|
||
|
%i.fa.fa-fw.fa-smile-o
|
||
|
%span= target.smile_count
|