mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:19:52 +01:00
Specify username param for pin/unpin path
This commit is contained in:
parent
736ca4d6b0
commit
854cf2662e
1 changed files with 2 additions and 2 deletions
|
@ -1,12 +1,12 @@
|
|||
- if answer.pinned?
|
||||
= button_to unpin_answer_path(id: answer.id),
|
||||
= button_to unpin_answer_path(username: current_user.screen_name, 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),
|
||||
= button_to pin_answer_path(username: current_user.screen_name, id: answer.id),
|
||||
class: "dropdown-item",
|
||||
method: :post,
|
||||
form: { id: "ab-pin-#{answer.id}", data: { turbo_stream: true } } do
|
||||
|
|
Loading…
Reference in a new issue