mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
feat(templates): template configuration is now placed on top of template list (#253)
This commit is contained in:
parent
6e9fe26fde
commit
422a982d60
3 changed files with 49 additions and 27 deletions
15
app/directives/widget-custom-header.js
Normal file
15
app/directives/widget-custom-header.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
angular
|
||||
.module('portainer')
|
||||
.directive('rdWidgetCustomHeader', function rdWidgetCustomHeader() {
|
||||
var directive = {
|
||||
requires: '^rdWidget',
|
||||
scope: {
|
||||
title: '=',
|
||||
icon: '='
|
||||
},
|
||||
transclude: true,
|
||||
template: '<div class="widget-header"><div class="row"><span class="pull-left"><img class="custom-header-ico" ng-src="{{icon}}"></img> <span class="small text-muted"> {{title}} </span> </span><span class="pull-right col-xs-6 col-sm-4" ng-transclude></span></div></div>',
|
||||
restrict: 'E'
|
||||
};
|
||||
return directive;
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue