X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/228ab23ce16338e281e609d9355c982cd4085c42..332fad14bb66da4b858034e6c544b6f4361ffde5:/app/views/users/show.html.erb
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index 81fda926b..253945b9b 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -101,6 +101,12 @@
<% end %>
+ <% if can?(:revoke_all, UserBlock) and @user.blocks.active.exists? %>
+
+ <%= link_to t(".revoke_all_blocks"), revoke_all_user_blocks_path(@user) %>
+
+ <% end %>
+
<% if can?(:create, UserBlock) %>
<%= link_to t(".create_block"), new_user_block_path(@user) %>
@@ -112,6 +118,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 %>