From 60da02d818c2ee79a0b8d596f49e513ba9a327ee Mon Sep 17 00:00:00 2001 From: root Date: Sat, 7 Nov 2020 19:59:53 +0000 Subject: [PATCH] Misc display tweaks --- app/static/css/tartiflette.css | 2 +- app/templates/appci_app.html | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/static/css/tartiflette.css b/app/static/css/tartiflette.css index a5e3af1..1b3d7e5 100644 --- a/app/static/css/tartiflette.css +++ b/app/static/css/tartiflette.css @@ -43,7 +43,7 @@ td.ci-app-test-result > div.danger { background-color: rgb(225,80,62); } .ci-app-table > thead > tr > th { border : none; } .ci-app-table > tbody > tr > td { border : none; } -.ci-app-table .ci-app-row-title { text-align: center; width:150px; } +.ci-app-table .ci-app-row-title { text-align: center; width:200px; } .ci-app-table .ci-app-test-info { width:150px; font-size: 12px; } .canvasjs-chart-credit { display: none; } diff --git a/app/templates/appci_app.html b/app/templates/appci_app.html index dac1f45..b629bae 100644 --- a/app/templates/appci_app.html +++ b/app/templates/appci_app.html @@ -159,8 +159,14 @@ window.onload = function () { type: "line", dataPoints: [ {% for d in history %} - { label: "{{ d.date }}", y: {{ d["level"] }}, + { label: "{{ d.date }}", + {% if d["level"] >= 0 %} + y: {{ d["level"] }}, markerColor: colors_per_level[{{ d["level"] }}] + {% else %} + y: 0, + markerSize: 1 + {% endif %} }, {% endfor %} ]