f9e6110f73
Adds support for creating app repos, viewing app repos and seeing the list of app repos in the Quay UI.
27 lines
No EOL
798 B
JavaScript
27 lines
No EOL
798 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',
|
|
namespace: '=namespace',
|
|
starToggled: '&starToggled',
|
|
hideTitle: '=hideTitle',
|
|
hideNamespaces: '=hideNamespaces',
|
|
repoKind: '@repoKind'
|
|
},
|
|
controller: function($scope, $element, UserService) {
|
|
$scope.isOrganization = function(namespace) {
|
|
return !!UserService.getOrganization(namespace);
|
|
};
|
|
}
|
|
};
|
|
return directiveDefinitionObject;
|
|
}); |