<%# locals: ()  %>

<% requiring_review_count = Script.not_deleted.where(review_state: :required).count %>
<% if requiring_review_count > 0 %>
  <%= link_to "[#{requiring_review_count}]", admin_blocked_script_texts_path, title: 'Requiring review' %>
<% end %>
<% reported_not_adult = Script.reported_not_adult.count %>
<% if reported_not_adult > 0 %>
  <%= link_to "[#{reported_not_adult}]", reported_not_adult_scripts_path, title: 'Reported not adult' %>
<% end %>
<% generic_reported_count = Report.unresolved.reject(&:awaiting_response?).count %>
<% if generic_reported_count > 0 %>
  <%= link_to "[#{generic_reported_count}]", reports_path, title: 'Reported' %>
<% end %>
<% appeal_count = ScriptLockAppeal.unresolved.joins(:script).count %>
<% if appeal_count > 0 %>
  <%= link_to "[#{appeal_count}]", script_lock_appeals_path, title: 'Appeals' %>
<% end %>
