<%= render 'filters' %>

<% if submissions_accepted.empty? && submissions_waitlist.empty? %>
  <%= render 'empty_table', message: "No rated submissions to show" %>
<% else %>
  <%= render 'result_table', { submissions: submissions_accepted, table_title: "accepted", filter: "accepted" } %>
  <%= render 'result_table', { submissions: submissions_waitlist, table_title: "waitlist", filter: "accepted" } %>

  <aside class="aside-widget aside-widget-fixed aside-widget-dashboard">
    <h2 class="aside-widget-header">Download:</h2>
    <ul class="download-list">
      <li><%= link_to_if !submissions_accepted.empty?, "Accepted", csv_download_accepted_path %></li>
      <li><%= link_to_if !submissions_waitlist.empty?, "Waitlist", csv_download_waitlist_path %></li>
    </ul>
    <%= link_to_if !submissions_accepted.empty?, "Send emails", send_invitation_emails_path, method: :post, data: { confirm: "Are you sure?" }, class: "btn btn-small btn-emails" %>
  </aside>
<% end %>

<%= render 'filters' %>

<% if submissions_accepted.empty? && submissions_waitlist.empty? %>
  <%= render 'empty_table', message: "No rated submissions to show" %>
<% else %>
  <%= link_to "Send emails", send_invitation_emails_path, method: :post, data: { confirm: "Are you sure?" }, class: "btn btn-small btn-emails" %>

  <%= render 'result_table', { submissions: submissions_accepted, table_title: "accepted", filter: "accepted" } %>
  <%= render 'result_table', { submissions: submissions_waitlist, table_title: "waitlist", filter: "accepted" } %>

  <aside class="aside-widget aside-widget-fixed aside-widget-dashboard">
    <h2 class="aside-widget-header">Download:</h2>
    <ul class="download-list">
      <li><%= link_to_if !submissions_accepted.empty?, "Accepted", csv_download_accepted_path %></li>
      <li><%= link_to_if !submissions_waitlist.empty?, "Waitlist", csv_download_waitlist_path %></li>
    </ul>
  </aside>
<% end %>

Move link for email confirmation above the table
Move link for email confirmation above the table
