Add a tip for API advertising on the dashboard #20

This commit is contained in:
Gaël Métais
2014-12-28 16:32:24 +01:00
parent b064e73ef4
commit c31e880f63
4 changed files with 191 additions and 165 deletions
@@ -62,5 +62,10 @@ dashboardCtrl.controller('DashboardCtrl', ['$scope', '$rootScope', '$routeParams
window.open(url, 'sharer', 'top=' + winTop + ',left=' + winLeft + ',toolbar=0,status=0,width=' + winWidth + ',height=' + winHeight);
}
// Returns the URL of the JSON result
$scope.getAPIUrl = function() {
return '/api/results/' + $scope.runId;
};
loadResults();
}]);