<%- include('partials/header', { title: 'Dashboard', activePage: 'dashboard' }) %> <% const overview = { queued: ['Waiting', 'Ready for a worker'], processing: ['Active', 'Claimed downloads'], done: ['Completed', 'Successful downloads'], failed: ['Failed attempts', 'Review attempt history'] }; const recentRows = typeof recent === 'object' && recent ? recent : { done: [], failed: [] }; %>

DOWNLOAD OVERVIEW

Dashboard

Your workers, current downloads and latest results in one place.

New download
<%- include('partials/active-downloads') %>

Updates every 10 seconds while this page is visible.

<% ['done', 'failed'].forEach(state => { %>

<%= state === 'done' ? 'Recently completed' : 'Recent failed attempts' %>

Latest five records

View history
><%= state === 'done' ? 'No completed downloads yet' : 'No failed attempts recorded' %>

<%= state === 'done' ? 'Completed episodes will appear here.' : 'Any failed attempts will appear here for review.' %>

<% if (state === 'failed') { %>

An earlier failed attempt may belong to an episode that later completed.

<% } %>
<% }) %>
<%- include('partials/footer') %>