rosa-abf/rosa-build

View on GitHub
app/assets/javascripts/angularjs/controllers/project_repo_block_controller.js

Summary

Maintainability
A
0 mins
Test Coverage
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;
}
}]);