Chromium Code Reviews| Index: appengine/findit/templates/flake/result.html |
| diff --git a/appengine/findit/templates/flake/result.html b/appengine/findit/templates/flake/result.html |
| index 7713dffaaa23376d3b2fa17115c254c4620099b1..32bfdaa2039ac4d32e2887aefe6efac792234944 100644 |
| --- a/appengine/findit/templates/flake/result.html |
| +++ b/appengine/findit/templates/flake/result.html |
| @@ -8,7 +8,7 @@ |
| font-size: 12px; |
| } |
| #placeholder { |
| - width: 450px; |
| + width: 450px; |
| height: 200px; |
| } |
| table { |
| @@ -21,6 +21,14 @@ |
| $(document).ready(function () { |
| $.plot($("#placeholder"), [{{success_rates}}], |
| { |
| + series: { |
| + lines: { |
| + show: true |
| + }, |
| + points: { |
| + show: true |
|
stgao
2016/08/19 20:30:34
nit: indent
caiw
2016/08/19 22:56:40
Done.
|
| + } |
| + }, |
| grid: { |
| hoverable: true, |
| borderWidth: 1 |
| @@ -29,8 +37,29 @@ |
| labelBoxBorderColor: "none", |
| position: "right" |
| } |
| - } |
| - )}); |
| + }); |
| + $("<div id='tooltip'></div>").css({ |
| + position: "absolute", |
| + display: "none", |
| + border: "1px solid #fdd", |
| + padding: "2px", |
| + "background-color": "#fee", |
| + opacity: 0.80 |
| + }).appendTo("body"); |
| + |
| + $("#placeholder").bind("plothover", function (event, pos, item) { |
| + if (item) { |
| + var x = Math.round(item.datapoint[0].toFixed(2)) |
|
stgao
2016/08/19 20:30:34
nit: end with ";".
caiw
2016/08/19 22:56:40
Done.
|
| + var y = item.datapoint[1].toFixed(2); |
| + |
| + $("#tooltip").html("Build Number: " + x + "<br> Pass rate: " + y) |
| + .css({top: item.pageY+5, left: item.pageX+5}) |
| + .fadeIn(200); |
| + } |
| + else { |
| + $("#tooltip").hide(); |
| + } |
| + })}); |
| </script> |
| </head> |
| @@ -40,6 +69,11 @@ |
| <td></td> |
| <td> |
| <h1>Regression range of Test</h1> |
| + Status of Analysis: {{analysis_status}} |
| + {% if suspected_flake_build_number %} |
| + <br> |
| + Regressed in Build: {{suspected_flake_build_number}} |
| + {% endif %} |
| </td> |
| <td></td> |
| </tr> |
| @@ -48,7 +82,13 @@ |
| <td> |
| <div id="placeholder"></div> |
| </td> |
| - <td></td> |
| + <td> |
| + Master Name: {{master_name}} <br> |
| + Builder Name: {{builder_name}} <br> |
| + Starting Build Number: {{build_number}} <br> |
| + Step Name: {{step_name}} <br> |
| + Test Name: {{test_name}} <br> |
| + </td> |
| </tr> |
| <tr> |
| <td></td> |