19 lines
621 B
JavaScript
19 lines
621 B
JavaScript
"use strict";
|
|
/**
|
|
* Created by viktor.shevchenko on 10/22/2014.
|
|
*/
|
|
(function () {
|
|
'use strict';
|
|
angular.module('myitsmApp')
|
|
.directive('iconPriorityIndicator', function () {
|
|
return {
|
|
restrict: 'E',
|
|
transclude: true,
|
|
template: '<div class="icon-priority-indicator"><div ng-transclude></div><div ng-if="priority" class="icon-priority-indicator__priority_{{priority}}"></div></div>',
|
|
link: function (scope, iElem, iAttrs) {
|
|
scope.priority = iAttrs.priority ? iAttrs.priority.toLowerCase() : '';
|
|
}
|
|
};
|
|
});
|
|
}());
|