Skip to content

Commit

Permalink
AO3-6010 Hide empty HTML tags if no admin actions (#4908)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjaustin authored Sep 1, 2024
1 parent 4ceb72b commit e64151e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/admin_posts/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!--/descriptions-->
<!--subnav-->
<div class="navigation actions module" role="navigation">
<% if logged_in_as_admin? %>
<% if policy(@admin_post).edit? || policy(@admin_post).destroy? || (logged_in_as_admin? && @admin_post.find_all_comments.unreviewed_only.exists?) %>
<h4 class="landmark heading"><%= t(".navigation.admin.landmark") %></h4>
<ul class="management actions">
<% if policy(@admin_post).edit? %>
Expand Down

0 comments on commit e64151e

Please sign in to comment.