Add the namespaces box to the right hand side and make other small UI improvements to the repo list view
This commit is contained in:
parent
785de61c59
commit
08f006a90c
6 changed files with 81 additions and 33 deletions
|
@ -1,11 +1,12 @@
|
|||
/**
|
||||
* An element that displays a list of repositories in a grid.
|
||||
*
|
||||
*/
|
||||
angular.module('quay').directive('repoListGrid', function() {
|
||||
return {
|
||||
templateUrl: '/static/directives/repo-list-grid.html',
|
||||
angular.module('quay').directive('repoListGrid', function () {
|
||||
var directiveDefinitionObject = {
|
||||
priority: 0,
|
||||
templateUrl: '/static/directives/repo-list-grid.html',
|
||||
replace: false,
|
||||
transclude: true,
|
||||
restrict: 'C',
|
||||
scope: {
|
||||
repositories: '=repositories',
|
||||
|
@ -14,5 +15,11 @@ angular.module('quay').directive('repoListGrid', function() {
|
|||
namespace: '=namespace',
|
||||
toggleStar: '&toggleStar'
|
||||
},
|
||||
controller: function($scope, $element, UserService) {
|
||||
$scope.isOrganization = function(namespace) {
|
||||
return !!UserService.getOrganization(namespace);
|
||||
};
|
||||
}
|
||||
};
|
||||
});
|
||||
return directiveDefinitionObject;
|
||||
});
|
Reference in a new issue