X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3af16f6337b52546297e7e09a1aba9b0e1df7e15..7c89e7c0b418c5c4d9692b5e153946571a6ea994:/app/views/user_blocks/show.html.erb diff --git a/app/views/user_blocks/show.html.erb b/app/views/user_blocks/show.html.erb index 28e467fb4..7e225bf14 100644 --- a/app/views/user_blocks/show.html.erb +++ b/app/views/user_blocks/show.html.erb @@ -13,7 +13,7 @@ <% if current_user and current_user.id == @user_block.creator_id %>
  • <%= link_to t(".edit"), edit_user_block_path(@user_block) %>
  • <% end %> - <% if current_user and current_user.moderator? %> + <% if can?(:revoke, UserBlock) %>
  • <%= link_to(t(".revoke"), :controller => "user_blocks", :action => "revoke", :id => @user_block.id) %>
  • <% end %> <% end %> @@ -28,7 +28,7 @@

    <% end %> -

    <%= t ".created" %>: <%= raw t ".ago", :time => friendly_date(@user_block.created_at) %>

    +

    <%= t ".created" %>: <%= friendly_date_ago(@user_block.created_at) %>

    <%= t ".status" %>: <%= block_status(@user_block) %>