diff --git a/app/views/follows/show.html.erb b/app/views/follows/show.html.erb index 3b9ef8dc34..3b82f4b5b4 100644 --- a/app/views/follows/show.html.erb +++ b/app/views/follows/show.html.erb @@ -2,7 +2,9 @@

<%= t(@already_follows ? ".unfollow.heading" : ".follow.heading", :user => @friend.display_name) %>

<% end %> -<%= link_to t(@already_follows ? ".unfollow.button" : ".follow.button"), - follow_path(:display_name => @friend.display_name, :referer => params[:referer]), - :method => (@already_follows ? :delete : :post), - :class => "btn btn-sm btn-primary" %> +<%= bootstrap_form_tag :method => (@already_follows ? :delete : :post) do |f| %> + <% if params[:referer] -%> + <%= f.hidden_field :referer, :value => params[:referer] %> + <% end -%> + <%= f.primary @already_follows ? t(".unfollow.button") : t(".follow.button") %> +<% end %>