Remove revoke buttons from block show pages
This commit is contained in:
parent
1baf64e7bc
commit
ed1e5ebe7d
2 changed files with 2 additions and 10 deletions
|
@ -26,15 +26,8 @@
|
|||
<dd class="col-sm-9"><div class="richtext text-break"><%= @user_block.reason.to_html %></div></dd>
|
||||
</dl>
|
||||
|
||||
<% if current_user && (current_user.id == @user_block.creator_id ||
|
||||
current_user.id == @user_block.revoker_id) ||
|
||||
can?(:revoke, UserBlock) && @user_block.active? %>
|
||||
<% if can?(:edit, @user_block) %>
|
||||
<div>
|
||||
<% if can?(:edit, @user_block) %>
|
||||
<%= link_to t(".edit"), edit_user_block_path(@user_block), :class => "btn btn-outline-primary" %>
|
||||
<% end %>
|
||||
<% if can?(:revoke, UserBlock) && @user_block.active? %>
|
||||
<%= link_to t(".revoke"), revoke_user_block_path(@user_block), :class => "btn btn-outline-danger" %>
|
||||
<% end %>
|
||||
<%= link_to t(".edit"), edit_user_block_path(@user_block), :class => "btn btn-outline-primary" %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
|
@ -3013,7 +3013,6 @@ en:
|
|||
status: "Status:"
|
||||
show: "Show"
|
||||
edit: "Edit"
|
||||
revoke: "Revoke!"
|
||||
confirm: "Are you sure?"
|
||||
reason: "Reason for block:"
|
||||
revoker: "Revoker:"
|
||||
|
|
Loading…
Add table
Reference in a new issue