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

27 lines
798 B
JavaScript
Raw Normal View History

2015-02-23 20:07:49 +00:00
/**
* An element that displays a list of repositories in a grid.
*/
angular.module('quay').directive('repoListGrid', function () {
var directiveDefinitionObject = {
2015-01-12 22:43:36 +00:00
priority: 0,
templateUrl: '/static/directives/repo-list-grid.html',
replace: false,
transclude: true,
2015-01-12 22:43:36 +00:00
restrict: 'C',
scope: {
repositoriesResource: '=repositoriesResource',
2015-01-12 22:43:36 +00:00
starred: '=starred',
namespace: '=namespace',
2015-03-25 19:31:05 +00:00
starToggled: '&starToggled',
hideTitle: '=hideTitle',
hideNamespaces: '=hideNamespaces',
repoKind: '@repoKind'
2015-01-12 22:43:36 +00:00
},
controller: function($scope, $element, UserService) {
$scope.isOrganization = function(namespace) {
return !!UserService.getOrganization(namespace);
};
}
2015-01-12 22:43:36 +00:00
};
return directiveDefinitionObject;
});