commit: 2d9903eaf5fc3aa789ceceb33fd654a1570bc8a7
parent 2a41dff139d4a7ccae99721dd46c3d8899090e41
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 8 Jun 2024 19:28:55 +0200
Use <dl> instead of <ul>
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/rc-status-page.c b/rc-status-page.c
@@ -38,7 +38,7 @@ print_service(const char *service)
status = "stopped";
}
- printf("\t<li class=\"service service-%s\">%s: %s</li>\n", status, service, status);
+ printf("\t<dt class=\"service-name\">%s</dt><dd class=\"service-%s\">%s</dd>\n", service, status, status);
}
static void
@@ -62,13 +62,13 @@ print_services(const char *runlevel, RC_STRINGLIST *svcs)
free(r);
if (!l) return;
- printf("<ul>\n");
+ printf("<dl class=\"services\">\n");
TAILQ_FOREACH(s, l, entries) {
if (!rc_stringlist_find(svcs, s->value)) continue;
if (!runlevel || rc_service_in_runlevel(s->value, runlevel)) print_service(s->value);
}
rc_stringlist_free(l);
- printf("</ul>\n");
+ printf("</dl>\n");
}
int