summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2023-01-22 22:23:21 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2023-01-22 22:23:21 +0100
commit9908706c55407d0324455ad577fff9d0c6c617a6 (patch)
treeb7c4536ce6b6b3ac32f6c5901e5d86c119d1f26b
parent3a77285e31af04041869dca66642483899234f58 (diff)
also show pass/fail
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
-rw-r--r--app.py2
-rw-r--r--static/style.css58
2 files changed, 59 insertions, 1 deletions
diff --git a/app.py b/app.py
index 1c3a373..e221686 100644
--- a/app.py
+++ b/app.py
@@ -125,7 +125,7 @@ def index_results(LPUSER, PPA, PACKAGE, RELEASE, ARCH):
"date": date,
"duration": duration,
"requester": requester,
- "result": exitcode,
+ "result": "pass" if exitcode == 0 else "fail",
"url_prefix": f"{autopkgtest_url_base}/{idx}",
}
package_results.append([result[h] for h in headers])
diff --git a/static/style.css b/static/style.css
new file mode 100644
index 0000000..a020cd3
--- /dev/null
+++ b/static/style.css
@@ -0,0 +1,58 @@
+.pass:before {
+ content: "✔ ";
+ color: #8ae234;
+ font-size: 18px;
+ vertical-align: top;
+}
+
+.neutral:before {
+ content: "😐";
+ color: #cab388;
+ font-size: 18px;
+ vertical-align: top;
+}
+
+.fail:before,
+.denylisted:before {
+ content: "✖ ";
+ color: #ef2929;
+ font-size: 18px;
+ vertical-align: top;
+}
+
+.tmpfail:before {
+ content: "⚠ ";
+ color: #ffd862;
+ font-size: 18px;
+ vertical-align: top;
+}
+
+.error:before {
+ content: "😅 ";
+ color: brown;
+ font-size: 18px;
+ vertical-align: top;
+}
+
+.panel .panel-heading {
+ font-size: 130%;
+}
+
+/* package browsing by prefix */
+
+.list-inline h5 a {
+ color: #E90051;
+ background-color: #eeeeec;
+ padding: 1px 10px;
+ border-radius: 5px;
+}
+
+.list-inline h5 a:hover {
+ text-decoration: none;
+ background-color: #E90051;
+ color: white;
+}
+
+.nowrap {
+ white-space: nowrap;
+}