commit 03c4ccc6dbac516c861f016ee30434fa1b4d4bb6
parent 8230f01f22540849144cb8528e805e0ee73f9274
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Sat, 12 Sep 2026 00:24:25 +0530
parent 8230f01f22540849144cb8528e805e0ee73f9274
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Sat, 12 Sep 2026 00:24:25 +0530
Tighten report and run tables
2 files changed, 26 insertions(+), 14 deletions(-)
diff --git a/main.c b/main.c @@ -192,13 +192,16 @@ get_html_run_header(struct khtmlreq *req) khtml_attr(req, KELEM_DIV, KATTR_CLASS, "row", KATTR__MAX); khtml_attr(req, KELEM_DIV, KATTR_CLASS, + "head report-id", KATTR__MAX); + khtml_closeelem(req, 1); + khtml_attr(req, KELEM_DIV, KATTR_CLASS, "head project-name", KATTR__MAX); khtml_closeelem(req, 1); khtml_attr(req, KELEM_DIV, KATTR_CLASS, "head report-commit", KATTR__MAX); khtml_closeelem(req, 1); khtml_attr(req, KELEM_DIV, KATTR_CLASS, - "head report-uname", KATTR__MAX); + "head report-target", KATTR__MAX); khtml_closeelem(req, 1); khtml_attr(req, KELEM_DIV, KATTR_CLASS, "head report-newest", KATTR__MAX); @@ -687,6 +690,13 @@ get_run_row(const struct run *p, void *arg) KATTRX_STRING, p->project.name, NULL); khtml_attr(r->html, KELEM_DIV, KATTR_CLASS, "row", KATTR__MAX); khtml_attr(r->html, KELEM_DIV, KATTR_CLASS, + "cell report-id", KATTR__MAX); + khtml_attr(r->html, KELEM_A, KATTR_HREF, urlrun, KATTR__MAX); + khtml_int(r->html, p->id); + khtml_closeelem(r->html, 1); + khtml_closeelem(r->html, 1); + + khtml_attr(r->html, KELEM_DIV, KATTR_CLASS, "cell project-name", KATTR__MAX); khtml_attr(r->html, KELEM_A, KATTR_HREF, urlproj, KATTR__MAX); khtml_puts(r->html, p->project.name); @@ -695,14 +705,12 @@ get_run_row(const struct run *p, void *arg) khtml_attr(r->html, KELEM_DIV, KATTR_CLASS, "cell report-commit", KATTR__MAX); - khtml_attr(r->html, KELEM_A, KATTR_HREF, urlrun, KATTR__MAX); strlcpy(commitshort, p->rev, sizeof(commitshort)); khtml_puts(r->html, commitshort); khtml_closeelem(r->html, 1); - khtml_closeelem(r->html, 1); khtml_attr(r->html, KELEM_DIV, KATTR_CLASS, - "cell report-uname", KATTR__MAX); + "cell report-target", KATTR__MAX); khtml_puts(r->html, p->target); khtml_closeelem(r->html, 1); @@ -738,13 +746,6 @@ get_dash_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 project-name", KATTR__MAX); - khtml_attr(r->html, KELEM_A, KATTR_HREF, urlproj, KATTR__MAX); - khtml_puts(r->html, p->run.project.name); - khtml_closeelem(r->html, 1); - khtml_closeelem(r->html, 1); - - khtml_attr(r->html, KELEM_DIV, KATTR_CLASS, "cell report-id", KATTR__MAX); khtml_attr(r->html, KELEM_A, KATTR_HREF, urljob, KATTR__MAX); khtml_puts(r->html, p->name); @@ -761,6 +762,13 @@ get_dash_job(const struct job *p, void *arg) khtml_closeelem(r->html, 1); khtml_attr(r->html, KELEM_DIV, KATTR_CLASS, + "cell project-name", KATTR__MAX); + khtml_attr(r->html, KELEM_A, KATTR_HREF, urlproj, KATTR__MAX); + khtml_puts(r->html, p->run.project.name); + khtml_closeelem(r->html, 1); + khtml_closeelem(r->html, 1); + + khtml_attr(r->html, KELEM_DIV, KATTR_CLASS, "cell report-commit", KATTR__MAX); strlcpy(commitshort, p->run.rev, sizeof(commitshort)); khtml_puts(r->html, commitshort); @@ -792,15 +800,15 @@ get_html_dashjob_header(struct khtmlreq *req) khtml_attr(req, KELEM_DIV, KATTR_CLASS, "row", KATTR__MAX); khtml_attr(req, KELEM_DIV, KATTR_CLASS, - "head project-name", KATTR__MAX); - khtml_closeelem(req, 1); - khtml_attr(req, KELEM_DIV, KATTR_CLASS, "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 project-name", KATTR__MAX); + khtml_closeelem(req, 1); + khtml_attr(req, KELEM_DIV, KATTR_CLASS, "head report-commit", KATTR__MAX); khtml_closeelem(req, 1); khtml_attr(req, KELEM_DIV, KATTR_CLASS,
diff --git a/minci.css b/minci.css @@ -51,6 +51,8 @@ div.table > :first-child { display: none; .cell + .cell { padding-left: 0.5rem; } .head.report-newest, .cell.report-newest { width: 11rem; } +.head.report-target, +.cell.report-target { width: 15rem; } .head.report-commit, .cell.report-commit { width: 6rem; } .head.project-name, @@ -64,6 +66,8 @@ div.table > :first-child { display: none; text-align: right; } .head.report-commit, .cell.report-commit { display: none; } +.head.report-id, +.cell.report-id { width: 7rem; } .head.report-passfail, .cell.report-passfail { width: 0.5rem; } .head.report-finished-pct,
: nply/minci