Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: gm/rebaseline_server/static/view.html

Issue 26659002: rebaseline_server: extend returned JSON dict to allow for result-editing in coming CL (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: oppa_python_style Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gm/rebaseline_server/static/loader.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html ng-app="Loader"> 3 <html ng-app="Loader">
4 4
5 <head> 5 <head>
6 <title>Current GM Results</title> 6 <title>Current GM Results</title>
7 <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.js" ></script> 7 <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.js" ></script>
8 <script src="loader.js"></script> 8 <script src="loader.js"></script>
9 </head> 9 </head>
10 10
11 <body> 11 <body>
12 <div ng-controller="Loader.Controller"> 12 <div ng-controller="Loader.Controller">
13 13
14 <!-- TODO(epoger): Add a warning banner if the server is running in
15 --export mode
16 -->
17
18 <!-- TODO(epoger): Add some indication of how old the 14 <!-- TODO(epoger): Add some indication of how old the
19 expected/actual data is --> 15 expected/actual data is -->
20 16
21 <em ng-hide="categories"> 17 <em ng-hide="categories">
22 Loading data, please wait... 18 Loading data, please wait...
23 </em> 19 </em>
24 20
25 <div ng-hide="!categories"> 21 <div ng-hide="!categories">
22 <div ng-hide="!(header.isEditable && header.isExported)"
23 style="background-color:#ffbb00">
24 WARNING! These results are editable and exported, so any user
25 who can connect to this server over the network can modify them.
26 </div>
26 <table border="1"> 27 <table border="1">
27 <tr> 28 <tr>
28 <th colspan="2"> 29 <th colspan="2">
29 Filters 30 Filters
30 </th> 31 </th>
31 <th> 32 <th>
32 Settings 33 Settings
33 </th> 34 </th>
34 </tr> 35 </tr>
35 <tr valign="top"> 36 <tr valign="top">
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 expected image 125 expected image
125 </th> 126 </th>
126 <th> 127 <th>
127 <input type="radio" 128 <input type="radio"
128 name="sortColumnRadio" 129 name="sortColumnRadio"
129 value="actualHashDigest" 130 value="actualHashDigest"
130 ng-checked="(sortColumn == 'actualHashDigest')" 131 ng-checked="(sortColumn == 'actualHashDigest')"
131 ng-click="sortResultsBy('actualHashDigest')"> 132 ng-click="sortResultsBy('actualHashDigest')">
132 actual image 133 actual image
133 </th> 134 </th>
135 <th ng-hide="!header.isEditable">
136 <!-- item-selection checkbox column -->
137 {{selectedItems}} <!-- TODO(epoger): temporary debug output -->
138 </th>
134 </tr> 139 </tr>
135 <tr ng-repeat="result in limitedTestData"> 140 <tr ng-repeat="result in limitedTestData">
136 <td>{{result.resultType}}</td> 141 <td>{{result.resultType}}</td>
137 <td>{{result.builder}}</td> 142 <td>{{result.builder}}</td>
138 <td>{{result.test}}</td> 143 <td>{{result.test}}</td>
139 <td>{{result.config}}</td> 144 <td>{{result.config}}</td>
140 <td> 145 <td>
141 <a target="_blank" href="http://chromium-skia-gm.commondatastorage.g oogleapis.com/gm/{{result.expectedHashType}}/{{result.test}}/{{result.expectedHa shDigest}}.png"> 146 <a target="_blank" href="http://chromium-skia-gm.commondatastorage.g oogleapis.com/gm/{{result.expectedHashType}}/{{result.test}}/{{result.expectedHa shDigest}}.png">
142 <img width="{{imageSize}}" src="http://chromium-skia-gm.commondata storage.googleapis.com/gm/{{result.expectedHashType}}/{{result.test}}/{{result.e xpectedHashDigest}}.png"/> 147 <img width="{{imageSize}}" src="http://chromium-skia-gm.commondata storage.googleapis.com/gm/{{result.expectedHashType}}/{{result.test}}/{{result.e xpectedHashDigest}}.png"/>
143 </a> 148 </a>
144 </td> 149 </td>
145 <td> 150 <td>
146 <a target="_blank" href="http://chromium-skia-gm.commondatastorage.g oogleapis.com/gm/{{result.actualHashType}}/{{result.test}}/{{result.actualHashDi gest}}.png"> 151 <a target="_blank" href="http://chromium-skia-gm.commondatastorage.g oogleapis.com/gm/{{result.actualHashType}}/{{result.test}}/{{result.actualHashDi gest}}.png">
147 <img width="{{imageSize}}" src="http://chromium-skia-gm.commondata storage.googleapis.com/gm/{{result.actualHashType}}/{{result.test}}/{{result.act ualHashDigest}}.png"/> 152 <img width="{{imageSize}}" src="http://chromium-skia-gm.commondata storage.googleapis.com/gm/{{result.actualHashType}}/{{result.test}}/{{result.act ualHashDigest}}.png"/>
148 </a> 153 </a>
149 </td> 154 </td>
155 <td ng-hide="!header.isEditable">
156 <input type="checkbox"
157 name="rowSelect"
158 value="{{result.index}}"
159 ng-checked="isItemSelected(result.index)"
160 ng-click="toggleItemSelected(result.index)">
150 </tr> 161 </tr>
151 </table> 162 </table>
152 </div> 163 </div>
153 </div> 164 </div>
154 165
155 <!-- TODO(epoger): Can we get the base URLs (commondatastorage and 166 <!-- TODO(epoger): Can we get the base URLs (commondatastorage and
156 issues list) from 167 issues list) from
157 http://skia.googlecode.com/svn/buildbot/site_config/global_variables.json 168 http://skia.googlecode.com/svn/buildbot/site_config/global_variables.json
158 ? I tried importing the 169 ? I tried importing the
159 http://skia.googlecode.com/svn/buildbot/skia_tools.js script and using 170 http://skia.googlecode.com/svn/buildbot/skia_tools.js script and using
160 that to do so, but I got Access-Control-Allow-Origin errors. 171 that to do so, but I got Access-Control-Allow-Origin errors.
161 --> 172 -->
162 173
163 </body> 174 </body>
164 </html> 175 </html>
OLDNEW
« no previous file with comments | « gm/rebaseline_server/static/loader.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698