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 6b298d6e6f9b3cd3158301d1fd693845bc56471a..3da656910909206969037a351f12c2e4be6b23dc 100644 |
| --- a/appengine/findit/templates/flake/result.html |
| +++ b/appengine/findit/templates/flake/result.html |
| @@ -1,8 +1,58 @@ |
| <!DOCTYPE html> |
| <head> |
| - <title>Find Regression Range</title> |
| - <meta charset="utf-8"> |
| +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> |
| +<title> Find Regression Range</title> |
| + |
| +<!-- lifted code from http://stackoverflow.com/questions/5563270/axis-label-in-flot --> |
| + |
| +<style type="text/css"> |
| +body { font-family: Verdana, Arial, sans-serif; font-size: 12px; } |
| +#placeholder { width: 450px; height: 200px; } |
| +</style> |
| + |
| +<script type="text/javascript" language="javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script> |
| +<script type="text/javascript" language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/flot/0.8.2/jquery.flot.min.js"></script> |
| +<script type="text/javascript"> |
| + |
| +$(document).ready(function () { |
| + |
| +$.plot($("#placeholder"), [{{success_rates}}], |
| +{ |
| +grid: { |
| +hoverable: true, |
| +borderWidth: 1 |
| +}, |
| +legend: { |
| +labelBoxBorderColor: "none", |
| +position: "right" |
| +} |
| +} |
| +)}); |
| +</script> |
| </head> |
| + |
| + |
|
lijeffrey
2016/08/01 18:58:39
nit: Not sure if these 2 empty lines should be her
caiw
2016/08/01 19:24:58
Ok I tried to make my code conform to the style gu
lijeffrey
2016/08/01 19:37:28
Always better to look at sample code to understand
caiw
2016/08/01 20:07:45
did the thing with the table style. I couldn't re
|
| <body> |
| - <p> Your job has been submitted. </p> |
| +<table style="text-align:center"> |
| +<tr> |
| +<td></td> |
| +<td> <h1> Regression range of Test </h1> </td> |
| +<td></td> |
| +</tr> |
| + |
| +<tr> |
| +<td> Pass Rate</td> |
| +<td> <div id="placeholder"></div> </td> |
| +<td></td> |
| +</tr> |
| + |
| +<tr> |
| +<td></td> |
| +<td> Build Number </td> |
| +<td></td> |
| +</tr> |
| + |
| + |
| +</table> |
| </body> |
| +</html> |