15 lines
453 B
Plaintext
15 lines
453 B
Plaintext
|
- if answer.pinned?
|
||
|
= button_to pin_answer_path(id: answer.id),
|
||
|
class: "dropdown-item",
|
||
|
method: :delete,
|
||
|
form: { id: "ab-pin-#{answer.id}", data: { turbo_stream: true } } do
|
||
|
%i.fa.fa-fw.fa-thumbtack
|
||
|
= t(".unpin")
|
||
|
- else
|
||
|
= button_to pin_answer_path(id: answer.id),
|
||
|
class: "dropdown-item",
|
||
|
method: :post,
|
||
|
form: { id: "ab-pin-#{answer.id}", data: { turbo_stream: true } } do
|
||
|
%i.fa.fa-fw.fa-thumbtack
|
||
|
= t(".pin")
|