summaryrefslogtreecommitdiff
path: root/web-app/static/index.html
diff options
context:
space:
mode:
authorClark Laughlin <clark.laughlin@linaro.org>2015-08-12 12:00:02 -0400
committerClark Laughlin <clark.laughlin@linaro.org>2015-08-12 12:00:02 -0400
commit96ebd282c26f90167e09f10782e0bb8a005f720a (patch)
treeaa4faa64d771320667bde3de156af289cbfcacc6 /web-app/static/index.html
parent6549fec2cfcdaf51f67306c46e2845421b6daea3 (diff)
web app: allow conditionally showing job failures
Diffstat (limited to 'web-app/static/index.html')
-rw-r--r--web-app/static/index.html13
1 files changed, 10 insertions, 3 deletions
diff --git a/web-app/static/index.html b/web-app/static/index.html
index 6f9e3ee..a6c57ec 100644
--- a/web-app/static/index.html
+++ b/web-app/static/index.html
@@ -15,8 +15,8 @@
<script type='text/javascript' src="http://canvasjs.com/assets/script/canvasjs.min.js"></script>
<style>
- h1,h2,h3 { font-family: ‘Merriweather Sans’, Arial, serif; font-weight: 700; }
- BODY { font-family: ‘Merriweather Sans’, Arial, serif; font-weight: 200; font-size: 90%; }
+ h1,h2,h3 { font-family: "Merriweather Sans", Arial, serif; font-weight: 700; }
+ BODY { font-family: "Merriweather Sans", Arial, serif; font-weight: 200; font-size: 90%; }
TABLE { font-size: 90%; }
</style>
@@ -28,6 +28,13 @@
var test_annotations_data;
$(function() {
+ var params = parse_query(window.location.search);
+ var param_show_failed_jobs = params["show_failed_jobs"];
+ if (param_show_failed_jobs == undefined) {
+ show_job_failures = false;
+ } else {
+ show_job_failures = true;
+ }
// generate a summary table of all the runs
var table1 = $('#summary_table').DataTable( {
@@ -72,7 +79,7 @@ $(function() {
$("<br>").appendTo($("#chartContainer"));
// generate a chart for the combination
- create_chart(div_name, branch, device, distro, version, 60, handle_chart_click);
+ create_chart(div_name, branch, device, distro, version, 60, show_job_failures, handle_chart_click);
});
});
});