2014-07-01 15:52:52 +01:00
|
|
|
RosaABF.controller('ProjectRepoBlockController', ['$scope', 'ApiProject', function($scope, ApiProject) {
|
|
|
|
|
|
|
|
$scope.clone_url = null;
|
|
|
|
$scope.singleton = ApiProject.singleton;
|
|
|
|
$scope.clone_url_protocol = 'ssh';
|
|
|
|
$scope.is_collapsed_git_help = true;
|
|
|
|
|
|
|
|
$scope.init = function(clone_url, branches) {
|
|
|
|
$scope.clone_url = clone_url;
|
|
|
|
$scope.singleton.project.branches_count = branches;
|
|
|
|
}
|
2014-07-09 12:55:40 +01:00
|
|
|
}]);
|