2023-10-25 23:16:18 -07:00
|
|
|
- if type == "follow"
|
2023-10-26 13:15:51 -07:00
|
|
|
= button_to relationships_path(screen_name:, type:), method: :delete, form: { id: "#{type}-#{screen_name}" }, class: "btn btn-primary",
|
|
|
|
form_class: "d-grid" do
|
2023-10-25 23:16:18 -07:00
|
|
|
= t("voc.unfollow")
|
|
|
|
|
|
|
|
- if type == "block"
|
|
|
|
= button_to relationships_path(screen_name:, type:), method: :delete, form: { id: "#{type}-#{screen_name}" }, class: "dropdown-item" do
|
|
|
|
%i.fa.fa-minus-circle.fa-fw
|
|
|
|
= t("voc.unblock")
|
|
|
|
|
|
|
|
- if type == "mute"
|
|
|
|
= button_to relationships_path(screen_name:, type:), method: :delete, form: { id: "#{type}-#{screen_name}" }, class: "dropdown-item" do
|
|
|
|
%i.fa.fa-volume-off.fa-fw
|
|
|
|
= t("voc.unmute")
|