X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f138055849e5b09cd94797c3e1705c6357d6b93b..44312c221bf79db6d0108803ba32f396befffca6:/app/views/users/show.html.erb?ds=sidebyside 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 %>