X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/98bfaace9aeba7fb387596cc16b2e661506173c6..57d4b3d8ce7ac4b0daabc7ec1815b6e46e7ceae0:/app/views/users/show.html.erb?ds=inline 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 %>