: nply/minci

commit 74a2011d5a2c30eef72c328c06a2c3b4c92e9ab2
parent 03c4ccc6dbac516c861f016ee30434fa1b4d4bb6
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Sat, 12 Sep 2026 00:25:53 +0530

Use report columns on run pages
2 files changed, 9 insertions(+), 5 deletions(-)
M
main.c
|
8
++++----
M
minci.css
|
6
+++++-
diff --git a/main.c b/main.c
@@ -215,13 +215,13 @@ get_html_job_header(struct khtmlreq *req)
 
 	khtml_attr(req, KELEM_DIV, KATTR_CLASS, "row", KATTR__MAX);
 	khtml_attr(req, KELEM_DIV, KATTR_CLASS,
-		"head report-job", KATTR__MAX);
+		"head report-id", KATTR__MAX);
 	khtml_closeelem(req, 1);
 	khtml_attr(req, KELEM_DIV, KATTR_CLASS,
 		"head report-status", KATTR__MAX);
 	khtml_closeelem(req, 1);
 	khtml_attr(req, KELEM_DIV, KATTR_CLASS,
-		"head report-start", KATTR__MAX);
+		"head report-duration", KATTR__MAX);
 	khtml_closeelem(req, 1);
 	khtml_closeelem(req, 1);
 }

@@ -256,7 +256,7 @@ get_html_job(const struct job *p, void *arg)
 
 	khtml_attr(&r->html, KELEM_DIV, KATTR_CLASS, "row", KATTR__MAX);
 	khtml_attr(&r->html, KELEM_DIV, KATTR_CLASS,
-		"cell report-job", KATTR__MAX);
+		"cell report-id", KATTR__MAX);
 	khtml_attr(&r->html, KELEM_A, KATTR_HREF, urljob, KATTR__MAX);
 	khtml_puts(&r->html, p->name);
 	khtml_closeelem(&r->html, 1);

@@ -269,7 +269,7 @@ get_html_job(const struct job *p, void *arg)
 	khtml_puts(&r->html, p->status);
 	khtml_closeelem(&r->html, 1);
 	khtml_closeelem(&r->html, 1);
-	get_html_offs(&r->html, "cell report-start", p->start, p->finish);
+	get_html_offs(&r->html, "cell report-duration", p->start, p->finish);
 	khtml_closeelem(&r->html, 1);
 	free(urljob);
 }
diff --git a/minci.css b/minci.css
@@ -68,6 +68,8 @@ div.table > :first-child		{ display: none;
 .cell.report-commit			{ display: none; }
 .head.report-id,
 .cell.report-id				{ width: 7rem; }
+.head.report-duration,
+.cell.report-duration			{ width: 6rem; }
 .head.report-passfail,
 .cell.report-passfail			{ width: 0.5rem; }
 .head.report-finished-pct,

@@ -92,7 +94,8 @@ div.table > :first-child		{ display: none;
 					  padding-bottom: 0.25rem;
 					  width: auto; }
 .leftgroup time::after,
-.cellgroup .cell time::after		{ content: ' s.';
+.cellgroup .cell time::after,
+.cell.report-duration time::after	{ content: ' s.';
 					  opacity: 0.5; }
 .leftgroup span::after,
 .cellgroup .cell span::after		{ content: '-';

@@ -155,6 +158,7 @@ div.table > :first-child		{ display: none;
   .head.report-target::before		{ content: 'target'; }
   .head.report-job::before			{ content: 'job'; }
   .head.report-status::before		{ content: 'status'; }
+  .head.report-duration::before		{ content: 'time'; }
   .head.report-id::before			{ content: 'report'; }
   .cell.report-id::before			{ content: '#'; }
   .head.report-newest::before		{ content: 'latest (GMT)'; }