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

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: windowTitle 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
« no previous file with comments | « gm/rebaseline_server/server.py ('k') | gm/rebaseline_server/static/view.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/rebaseline_server/static/loader.js
===================================================================
--- gm/rebaseline_server/static/loader.js (revision 11776)
+++ gm/rebaseline_server/static/loader.js (working copy)
@@ -31,7 +31,8 @@
Loader.controller(
'Loader.Controller',
- function($scope, $http, $filter, $location) {
+ function($scope, $http, $filter, $location) {
+ $scope.windowTitle = "Loading GM Results...";
var resultsToLoad = $location.search().resultsToLoad;
$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 = "";
+ $scope.windowTitle = "Current GM Results";
}
).error(
function(data, status, header, config) {
$scope.loadingMessage = "Failed to load results of type '"
+ resultsToLoad + "'";
+ $scope.windowTitle = "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
« no previous file with comments | « gm/rebaseline_server/server.py ('k') | gm/rebaseline_server/static/view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698