<%- title t('scripts.admin.title', script_name: @script.name) %>

<%= render partial: 'shared/errors', locals: { resource: @script } %>

<% if @script.users.include?(current_user) %>
  <%= render partial: 'set_promoted' %>
  <%= render partial: 'sync' %>
  <%= render partial: 'authors' %>
<% end %>

<%= render partial: 'set_locale' %>
<%= render partial: 'moderator_log' %>
<%= render partial: 'compare' %>
<%= render partial: 'checkup' %>

<% if current_user.moderator? %>
  <%= render partial: 'mark_adult' %>
<% end %>
