From 9908706c55407d0324455ad577fff9d0c6c617a6 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sun, 22 Jan 2023 22:23:21 +0100 Subject: also show pass/fail Signed-off-by: Olivier Gayot --- app.py | 2 +- static/style.css | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 static/style.css 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; +} -- cgit v1.2.3