| Index: gm/rebaseline_server/static/view.html
|
| ===================================================================
|
| --- gm/rebaseline_server/static/view.html (revision 0)
|
| +++ gm/rebaseline_server/static/view.html (revision 0)
|
| @@ -0,0 +1,65 @@
|
| +<!DOCTYPE html>
|
| +
|
| +<html ng-app="Loader">
|
| +
|
| +<head>
|
| + <title>Current GM Failures</title>
|
| + <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.js"></script>
|
| + <script src="loader.js"></script>
|
| +</head>
|
| +
|
| +<body>
|
| + <div ng-controller="Loader.Controller" >
|
| +
|
| + Settings:
|
| + <ul>
|
| + <li>show results of type
|
| + <select ng-model="resultType" ng-init="resultType='failed';changeResultType()" ng-change="changeResultType()">
|
| + <option>failed</option>
|
| + <option>failure-ignored</option>
|
| + <option>no-comparison</option>
|
| + </select>
|
| + </li>
|
| + <li>image size
|
| + <input type="text" ng-model="imageSize" ng-init="imageSize=100" maxlength="4"/>
|
| + </li>
|
| + </ul>
|
| +
|
| + <p>
|
| + <table border="1">
|
| + <tr>
|
| + <th ng:click="sortColumn='builder'">Builder</th>
|
| + <th ng:click="sortColumn='test'">Test</th>
|
| + <th ng:click="sortColumn='config'">Config</th>
|
| + <th ng:click="sortColumn='expectedHashDigest'">Expected Image</th>
|
| + <th ng:click="sortColumn='actualHashDigest'">Actual Image</th>
|
| + </tr>
|
| +<!-- EPOGER: improve the column sorting, as per http://jsfiddle.net/vojtajina/js64b/14/ -->
|
| + <tr ng-repeat="result in results | orderBy: sortColumn">
|
| + <td>{{result.builder}}</td>
|
| + <td>{{result.test}}</td>
|
| + <td>{{result.config}}</td>
|
| + <td>
|
| + <a target="_blank" href="http://chromium-skia-gm.commondatastorage.googleapis.com/gm/{{result.expectedHashType}}/{{result.test}}/{{result.expectedHashDigest}}.png">
|
| + <img width="{{imageSize}}" src="http://chromium-skia-gm.commondatastorage.googleapis.com/gm/{{result.expectedHashType}}/{{result.test}}/{{result.expectedHashDigest}}.png"/>
|
| + </a>
|
| + </td>
|
| + <td>
|
| + <a target="_blank" href="http://chromium-skia-gm.commondatastorage.googleapis.com/gm/{{result.actualHashType}}/{{result.test}}/{{result.actualHashDigest}}.png">
|
| + <img width="{{imageSize}}" src="http://chromium-skia-gm.commondatastorage.googleapis.com/gm/{{result.actualHashType}}/{{result.test}}/{{result.actualHashDigest}}.png"/>
|
| + </a>
|
| + </td>
|
| + </tr>
|
| + </table>
|
| + </div>
|
| +
|
| + <!-- TODO(epoger): Can we get the base URLs (commondatastorage and
|
| + issues list) from
|
| + http://skia.googlecode.com/svn/buildbot/site_config/global_variables.json ?
|
| + I tried importing the
|
| + http://skia.googlecode.com/svn/buildbot/skia_tools.js script and using
|
| + that to do so, but I got Access-Control-Allow-Origin errors.
|
| + -->
|
| +
|
| +</body>
|
| +</html>
|
|
|