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

Unified Diff: gm/rebaseline_server/static/loader.js

Issue 27218005: rebaseline_server: add --editable and --reload flags (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: gm/rebaseline_server/static/loader.js
===================================================================
--- gm/rebaseline_server/static/loader.js (revision 11776)
+++ gm/rebaseline_server/static/loader.js (working copy)
@@ -31,8 +31,9 @@
Loader.controller(
'Loader.Controller',
- function($scope, $http, $filter, $location) {
+ function($scope, $http, $filter, $location, $window) {
var resultsToLoad = $location.search().resultsToLoad;
+ $window.document.title = "Loading GM Results...";
epoger 2013/10/15 18:31:21 incidental change: Change the document title based
$scope.loadingMessage = "Loading results of type '" + resultsToLoad +
"', please wait...";
@@ -44,6 +45,7 @@
$scope.categories = data.categories;
$scope.testData = data.testData;
$scope.sortColumn = 'test';
+ $scope.showTodos = true;
for (var i = 0; i < $scope.testData.length; i++) {
$scope.testData[i].index = i;
@@ -59,11 +61,13 @@
$scope.updateResults();
$scope.loadingMessage = "";
+ $window.document.title = "Current GM Results";
jcgregorio 2013/10/15 18:48:57 $scope.title = "Current... And then update the HT
epoger 2013/10/15 19:25:00 That doesn't work without some additional changes.
jcgregorio 2013/10/15 19:38:32 Urg, I wish that wasn't so complicated, leave it a
}
).error(
function(data, status, header, config) {
$scope.loadingMessage = "Failed to load results of type '"
+ resultsToLoad + "'";
+ $window.document.title = "Failed to Load GM Results";
}
);
@@ -109,6 +113,11 @@
$scope.areUpdatesPending = true;
}
+ $scope.localTimeString = function(secondsPastEpoch) {
+ var d = new Date(secondsPastEpoch * 1000);
+ return d.toString();
+ }
+
$scope.updateResults = function() {
$scope.displayLimit = $scope.displayLimitPending;
// TODO(epoger): Every time we apply a filter, AngularJS creates

Powered by Google App Engine
This is Rietveld 408576698