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

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

Issue 156773003: rebaseline_server: add "show only"/"show all" buttons to some columns (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 10 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html ng-app="Loader" ng-controller="Loader.Controller"> 3 <html ng-app="Loader" ng-controller="Loader.Controller">
4 4
5 <head> 5 <head>
6 <title ng-bind="windowTitle"></title> 6 <title ng-bind="windowTitle"></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 <script src="diff_viewer.js"></script> 9 <script src="diff_viewer.js"></script>
10 <link rel="stylesheet" href="view.css"> 10 <link rel="stylesheet" href="view.css">
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 ng-init="pixelDiffBgColorBrightness=64; pixelDiffBgColor=brig htnessStringToHexColor(pixelDiffBgColorBrightness)" 269 ng-init="pixelDiffBgColorBrightness=64; pixelDiffBgColor=brig htnessStringToHexColor(pixelDiffBgColorBrightness)"
270 ng-change="pixelDiffBgColor=brightnessStringToHexColor(pixelD iffBgColorBrightness)" 270 ng-change="pixelDiffBgColor=brightnessStringToHexColor(pixelD iffBgColorBrightness)"
271 title="image background brightness" 271 title="image background brightness"
272 min="0" max="255"/> 272 min="0" max="255"/>
273 </th> 273 </th>
274 <th> 274 <th>
275 <!-- item-selection checkbox column --> 275 <!-- item-selection checkbox column -->
276 </th> 276 </th>
277 </tr> 277 </tr>
278 278
279 <!-- For most columns... if the user clicks on the cell, and we are on
280 the default tab, update the filter to only show results with the
281 same value for this category.
282 This is made a bit tricky by the fact that AngularJS expressions
283 do not allow control flow statements. See
284 http://docs.angularjs.org/guide/expression -->
285 <tr ng-repeat="result in limitedTestData" ng-controller="ImageController "> 279 <tr ng-repeat="result in limitedTestData" ng-controller="ImageController ">
286 <td ng-click="(viewingTab != defaultTab) || showOnlyResultType(result. resultType)"> 280 <td>
287 {{result.resultType}} 281 {{result.resultType}}
282 <br>
283 <button class="show-only-button"
284 ng-hide="viewingTab != defaultTab"
285 ng-click="showOnlyResultType(result.resultType)"
286 title="show only results of type '{{result.resultType}}'">
287 show only
288 </button>
289 <br>
290 <button class="show-all-button"
291 ng-hide="viewingTab != defaultTab"
292 ng-disabled="0 == setSize(hiddenResultTypes)"
293 ng-click="showAllResultTypes()"
294 title="show results of all types">
295 show all
296 </button>
288 </td> 297 </td>
289 <td ng-repeat="categoryName in ['builder', 'test']" 298 <td ng-repeat="categoryName in ['builder', 'test']">
290 ng-click="(viewingTab != defaultTab) || setCategoryValueMatch(cate goryName, result[categoryName])">
291 {{result[categoryName]}} 299 {{result[categoryName]}}
300 <br>
301 <button class="show-only-button"
302 ng-hide="viewingTab != defaultTab"
303 ng-disabled="result[categoryName] == categoryValueMatch[cate goryName]"
304 ng-click="setCategoryValueMatch(categoryName, result[categor yName])"
305 title="show only results of {{categoryName}} '{{result[categ oryName]}}'">
306 show only
307 </button>
308 <br>
309 <button class="show-all-button"
310 ng-hide="viewingTab != defaultTab"
311 ng-disabled="'' == categoryValueMatch[categoryName]"
312 ng-click="setCategoryValueMatch(categoryName, '')"
313 title="show results of all {{categoryName}}s">
314 show all
315 </button>
292 </td> 316 </td>
293 <td ng-click="(viewingTab != defaultTab) || showOnlyConfig(result.conf ig)"> 317 <td>
294 {{result.config}} 318 {{result.config}}
319 <br>
320 <button class="show-only-button"
321 ng-hide="viewingTab != defaultTab"
322 ng-click="showOnlyConfig(result.config)"
323 title="show only results of config '{{result.config}}'">
324 show only
325 </button>
326 <br>
327 <button class="show-all-button"
328 ng-hide="viewingTab != defaultTab"
329 ng-disabled="0 == setSize(hiddenConfigs)"
330 ng-click="showAllConfigs()"
331 title="show results of all configs">
332 show all
333 </button>
295 </td> 334 </td>
296 <td> 335 <td>
297 <a ng-repeat="bug in result['bugs']" 336 <a ng-repeat="bug in result['bugs']"
298 href="https://code.google.com/p/skia/issues/detail?id={{bug}}" 337 href="https://code.google.com/p/skia/issues/detail?id={{bug}}"
299 target="_blank"> 338 target="_blank">
300 {{bug}} 339 {{bug}}
301 </a> 340 </a>
302 </td> 341 </td>
303 342
304 <!-- expected image --> 343 <!-- expected image -->
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 <!-- TODO(epoger): Can we get the base URLs (commondatastorage and 415 <!-- TODO(epoger): Can we get the base URLs (commondatastorage and
377 issues list) from 416 issues list) from
378 https://skia.googlesource.com/buildbot/+/master/site_config/global_variab les.json ? 417 https://skia.googlesource.com/buildbot/+/master/site_config/global_variab les.json ?
379 I tried importing the 418 I tried importing the
380 http://skia.googlecode.com/svn/buildbot/skia_tools.js script and using 419 http://skia.googlecode.com/svn/buildbot/skia_tools.js script and using
381 that to do so, but I got Access-Control-Allow-Origin errors. 420 that to do so, but I got Access-Control-Allow-Origin errors.
382 --> 421 -->
383 422
384 </body> 423 </body>
385 </html> 424 </html>
OLDNEW
« gm/rebaseline_server/static/loader.js ('K') | « gm/rebaseline_server/static/view.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698