X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6eb29bf6d4cec8b6e4b503242e80a69647947745..efc61f13159f2cf4e2ba542bac40ca84a57480da:/app/views/users/show.html.erb diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 81fda926b..0c803ebb0 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -112,6 +112,16 @@ <%= report_link(t(".report"), @user) %> <% end %> + + <% if current_user and UserMute.exists?(owner: current_user, subject: @user) %> +
  • + <%= link_to t(".destroy_mute"), user_mute_path(@user), :method => :delete %> +
  • + <% elsif current_user %> +
  • + <%= link_to t(".create_mute"), user_mute_path(@user), :method => :post, :title => t("user_mutes.index.user_mute_explainer") %> +
  • + <% end %> <% end %>