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,69 @@ |
+<!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> |
borenet
2013/09/25 15:09:51
For some reason, I'm really thrown off by this web
epoger
2013/09/25 16:21:18
I tried to make some adjustments, but my CSS-fu is
borenet
2013/09/25 19:28:17
SGTM
|
+ <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> |
borenet
2013/09/25 15:09:51
I don't know how useful they were to other devs, b
epoger
2013/09/25 16:21:18
Oh, absolutely. I added a TODO in lamenting this
epoger
2013/09/25 18:26:33
Brian has changed my mind about this. I now think
borenet
2013/09/25 19:28:17
Yeah, #2 sounds awesome, particularly if you can d
|
+ </tr> |
+ <!-- TODO(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> |