From: Anton Khorev Date: Fri, 23 Aug 2024 09:55:53 +0000 (+0300) Subject: Remove revoke buttons from block lists X-Git-Tag: live~332^2~4 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/1baf64e7bc07abb7b917f54dde92cbd3e8382274?hp=3a8b8af53b92d232ea3cfdff904b788affbb71b8 Remove revoke buttons from block lists --- diff --git a/app/views/user_blocks/_block.html.erb b/app/views/user_blocks/_block.html.erb index b464b4ccd..1eb38f93f 100644 --- a/app/views/user_blocks/_block.html.erb +++ b/app/views/user_blocks/_block.html.erb @@ -16,7 +16,4 @@ <%= link_to t(".show"), block %> <% if can?(:edit, block) %><%= link_to t(".edit"), edit_user_block_path(block) %><% end %> - <% if can?(:revoke, UserBlock) %> - <% if block.active? %><%= link_to t(".revoke"), revoke_user_block_path(block) %><% end %> - <% end %> diff --git a/app/views/user_blocks/_blocks.html.erb b/app/views/user_blocks/_blocks.html.erb index 8816acb15..7f44b6bc3 100644 --- a/app/views/user_blocks/_blocks.html.erb +++ b/app/views/user_blocks/_blocks.html.erb @@ -13,9 +13,6 @@ <%= t ".revoker_name" %> - <% if can?(:revoke, UserBlock) %> - - <% end %> <%= render :partial => "block", :collection => @user_blocks %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 80811cd1f..26182c3eb 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3022,7 +3022,6 @@ en: not_revoked: "(not revoked)" show: "Show" edit: "Edit" - revoke: "Revoke!" blocks: display_name: "Blocked User" creator_name: "Creator"