lazier

personal summarizer
Log | Files | Refs | README

commit 130c5b6924ead47b5fd9865bcd19e4dd359d0bdf
parent 739d31d59b2bcafd851301b9ec303d8dd421858b
Author: Pablo Murad <pblmrd@gmail.com>
Date:   Sat,  9 May 2026 22:30:48 -0300

sótórico

Diffstat:
Mlazier/web/templates/index.html | 17++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/lazier/web/templates/index.html b/lazier/web/templates/index.html @@ -323,8 +323,7 @@ </div> <nav class="nav"> <a href="#" class="active" onclick="showPage('process');return false;">Processar</a> - <a href="#" onclick="showPage('history');return false;">Histórico</a> - <a href="#" onclick="showPage('downloads');return false;">Downloads</a> + <a href="#" onclick="showPage('archive');return false;">Histórico</a> </nav> </header> @@ -357,8 +356,9 @@ <div class="list" id="jobsList"></div> </section> - <section id="page-history" class="page"> + <section id="page-archive" class="page"> <div class="section-title">Histórico</div> + <p class="section-lead">Filtre por estado; vê todos os jobs na primeira lista. Abaixo: só concluídos com ficheiro para baixar.</p> <div class="filters"> <button type="button" class="filter active" onclick="filterHistory('all',this)">Todos</button> <button type="button" class="filter" onclick="filterHistory('completed',this)">Concluídos</button> @@ -367,11 +367,7 @@ <button type="button" class="filter" onclick="filterHistory('interrupted',this)">Interrompidos</button> </div> <div class="list" id="historyList"></div> - </section> - - <section id="page-downloads" class="page"> - <div class="section-title">Downloads</div> - <p class="section-lead">Arquivos prontos para baixar.</p> + <div class="divider"></div> <div class="list" id="downloadsList"></div> </section> @@ -434,11 +430,10 @@ document.querySelectorAll('.page').forEach((node) => node.classList.remove('active')); document.querySelectorAll('.nav a').forEach((node) => node.classList.remove('active')); document.getElementById(`page-${page}`).classList.add('active'); - const index = ['process','history','downloads'].indexOf(page); + const index = ['process','archive'].indexOf(page); const links = Array.from(document.querySelectorAll('.nav a')); if (links[index]) links[index].classList.add('active'); - if (page === 'history') loadHistory(); - if (page === 'downloads') loadDownloads(); + if (page === 'archive') loadHistory(); } async function processFiles() {