** Your custom dashboard: **
View here: http://joss.theoj.org/dashboard/<%= @editor %>

<% if @assigned_issues.any? %>
Here are the papers you are currently editing:

  <% @assigned_issues.each do |issue| %>
- <%= issue.title %>
- Submitted: <%= issue.created_at.strftime('%F') %>
- Total comments: <%= issue.comment_count %>
- Last comment: by @<%= issue.last_comment['user']['login']%> <%= time_ago_in_words(issue.last_comment['created_at']) %> ago
- https://github.com/<%= Rails.application.settings["reviews"] %>/issues/<%= issue.number %>
  <% end %>

<% else %>
You don't seem to be editing any papers. Please consider volunteering to edit one of the pending papers above.
<% end %>

<% if @closed_issues.any? %>
Published papers this week

  <% @closed_issues.each do |issue| %>
- <%= issue.title %>
- Submitted: <%= issue.created_at.strftime('%F') %>
- https://github.com/<%= Rails.application.settings["reviews"] %>/issues/<%= issue.number %>
- Editor: <%= issue.editor %>
  <% end %>
<% end %>

<% if @pending_issues.any? %>
Here are the papers currently without an editor

** Please consider volunteering to edit one (or more) of these papers **

  <% @pending_issues.each do |issue| %>
- <%= issue.title %>
- Submitted: <%= issue.created_at.strftime('%F') %>
- https://github.com/<%= Rails.application.settings["reviews"] %>/issues/<%= issue.number %>
  <% end %>
<% end %>
