This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/static/js/directives/ui/repo-list-grid.js
2015-03-09 22:03:39 -07:00

25 lines
No EOL
718 B
JavaScript

/**
* An element that displays a list of repositories in a grid.
*/
angular.module('quay').directive('repoListGrid', function () {
var directiveDefinitionObject = {
priority: 0,
templateUrl: '/static/directives/repo-list-grid.html',
replace: false,
transclude: true,
restrict: 'C',
scope: {
repositoriesResource: '=repositoriesResource',
starred: '=starred',
user: "=user",
namespace: '=namespace',
starToggled: '&starToggled'
},
controller: function($scope, $element, UserService) {
$scope.isOrganization = function(namespace) {
return !!UserService.getOrganization(namespace);
};
}
};
return directiveDefinitionObject;
});