24 lines
665 B
JavaScript
24 lines
665 B
JavaScript
/**
|
|
* An element which displays the information panel for a repository view.
|
|
*/
|
|
angular.module('quay').directive('repoPanelInfo', function () {
|
|
var directiveDefinitionObject = {
|
|
priority: 0,
|
|
templateUrl: '/static/directives/repo-view/repo-panel-info.html',
|
|
replace: false,
|
|
transclude: false,
|
|
restrict: 'C',
|
|
scope: {
|
|
'repository': '=repository',
|
|
'builds': '=builds'
|
|
},
|
|
controller: function($scope, $element, ApiService) {
|
|
$scope.updateDescription = function(content) {
|
|
$scope.repository.description = content;
|
|
$scope.repository.put();
|
|
};
|
|
}
|
|
};
|
|
return directiveDefinitionObject;
|
|
});
|
|
|