diff options
Diffstat (limited to 'plugins/CoreHome/angularjs/alert/alert.directive.js')
-rw-r--r-- | plugins/CoreHome/angularjs/alert/alert.directive.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/CoreHome/angularjs/alert/alert.directive.js b/plugins/CoreHome/angularjs/alert/alert.directive.js new file mode 100644 index 0000000000..e2687b1e4f --- /dev/null +++ b/plugins/CoreHome/angularjs/alert/alert.directive.js @@ -0,0 +1,26 @@ +/*! + * Piwik - free/libre analytics platform + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + */ + +/** + * Usage: + * <div piwik-alert> + */ +(function () { + angular.module('piwikApp').directive('piwikAlert', piwikAlert); + + piwikAlert.$inject = ['piwik']; + + function piwikAlert(piwik){ + + return { + restrict: 'A', + transclude: true, + scope: {severity: '@piwikAlert'}, + templateUrl: 'plugins/CoreHome/angularjs/alert/alert.directive.html?cb=' + piwik.cacheBuster + }; + } +})();
\ No newline at end of file |