Torkel Ödegaard 11 лет назад
Родитель
Сommit
7fef460fa2

+ 1 - 1
src/app/features/panel/panelDirective.js

@@ -25,7 +25,7 @@ function (angular, $, config) {
     }).directive('grafanaPanel', function() {
     }).directive('grafanaPanel', function() {
       return {
       return {
         restrict: 'E',
         restrict: 'E',
-        templateUrl: '/app/features/panel/partials/panel.html',
+        templateUrl: 'app/features/panel/partials/panel.html',
         transclude: true,
         transclude: true,
         link: function(scope, elem) {
         link: function(scope, elem) {
           var panelContainer = elem.find('.panel-container');
           var panelContainer = elem.find('.panel-container');

+ 1 - 1
src/app/panels/graph/module.js

@@ -19,7 +19,7 @@ function (angular, app, $, _, kbn, moment, TimeSeries, PanelMeta) {
   module.directive('grafanaPanelGraph', function() {
   module.directive('grafanaPanelGraph', function() {
     return {
     return {
       controller: 'GraphCtrl',
       controller: 'GraphCtrl',
-      templateUrl: '/app/panels/graph/module.html',
+      templateUrl: 'app/panels/graph/module.html',
     };
     };
   });
   });
 
 

+ 1 - 1
src/app/panels/singlestat/module.js

@@ -16,7 +16,7 @@ function (angular, app, _, TimeSeries, kbn, PanelMeta) {
   module.directive('grafanaPanelSinglestat', function() {
   module.directive('grafanaPanelSinglestat', function() {
     return {
     return {
       controller: 'SingleStatCtrl',
       controller: 'SingleStatCtrl',
-      templateUrl: '/app/panels/singlestat/module.html',
+      templateUrl: 'app/panels/singlestat/module.html',
     };
     };
   });
   });
 
 

+ 1 - 1
src/app/panels/text/module.js

@@ -16,7 +16,7 @@ function (angular, app, _, require, PanelMeta) {
   module.directive('grafanaPanelText', function() {
   module.directive('grafanaPanelText', function() {
     return {
     return {
       controller: 'TextPanelCtrl',
       controller: 'TextPanelCtrl',
-      templateUrl: '/app/panels/text/module.html',
+      templateUrl: 'app/panels/text/module.html',
     };
     };
   });
   });
 
 

+ 1 - 1
tasks/options/ngtemplates.js

@@ -2,7 +2,7 @@ module.exports = function(config) {
   return {
   return {
     grafana: {
     grafana: {
       cwd:  '<%= tempDir %>',
       cwd:  '<%= tempDir %>',
-      src:  ['app/**/*.html', '!app/panels/*/module.html'],
+      src:  ['app/**/*.html'],
       dest: '<%= tempDir %>/app/components/partials.js',
       dest: '<%= tempDir %>/app/components/partials.js',
       options: {
       options: {
         bootstrap: function(module, script) {
         bootstrap: function(module, script) {