<h4>INSTRUCTIONS</h4>

<p>Please review the recently-flagged submissions below and vote on the <%= Rails.application.settings["abbreviation"] %> paper page whether you believe the submission is in scope, or out of scope.</p>

<% if @query_scope_issues.any? %>
  <% @query_scope_issues.each do |issue| %>
    <% unless Vote.has_vote_for?(issue.paper, @editor) %>
      <% if issue.pre_review? %>
<h4><%= issue.title %> (<%= issue.paper.created_at.strftime('%F') %>)</h4>
<p><%= issue.paper.body %></p>
<p><%= link_to "VOTE ON SCOPE HERE", "#{Rails.application.settings["url"]}/papers/#{issue.paper.sha}" %> &middot; <%= link_to "View review issue", "https://github.com/#{Rails.application.settings['reviews']}/issues/#{issue.number}" %> &middot; <%= link_to "View software repository", issue.paper.repository_url %></p>
<hr />
      <% end %>
    <% end %>
  <% end %>
<% end %>