21 lines
600 B
JavaScript
21 lines
600 B
JavaScript
|
/**
|
||
|
* An element which displays information about a build trigger.
|
||
|
*/
|
||
|
angular.module('quay').directive('triggerDescription', function () {
|
||
|
var directiveDefinitionObject = {
|
||
|
priority: 0,
|
||
|
templateUrl: '/static/directives/trigger-description.html',
|
||
|
replace: false,
|
||
|
transclude: false,
|
||
|
restrict: 'C',
|
||
|
scope: {
|
||
|
'trigger': '=trigger',
|
||
|
'short': '=short'
|
||
|
},
|
||
|
controller: function($scope, $element, KeyService, TriggerService) {
|
||
|
$scope.KeyService = KeyService;
|
||
|
$scope.TriggerService = TriggerService;
|
||
|
}
|
||
|
};
|
||
|
return directiveDefinitionObject;
|
||
|
});
|