From 7fef460fa2b6034429b205dc63d9b9f298f43fb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 2 Feb 2015 22:15:15 +0100 Subject: [PATCH] Fix for paths to partials --- src/app/features/panel/panelDirective.js | 2 +- src/app/panels/graph/module.js | 2 +- src/app/panels/singlestat/module.js | 2 +- src/app/panels/text/module.js | 2 +- tasks/options/ngtemplates.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/features/panel/panelDirective.js b/src/app/features/panel/panelDirective.js index 5692a188bca..f8048d53637 100644 --- a/src/app/features/panel/panelDirective.js +++ b/src/app/features/panel/panelDirective.js @@ -25,7 +25,7 @@ function (angular, $, config) { }).directive('grafanaPanel', function() { return { restrict: 'E', - templateUrl: '/app/features/panel/partials/panel.html', + templateUrl: 'app/features/panel/partials/panel.html', transclude: true, link: function(scope, elem) { var panelContainer = elem.find('.panel-container'); diff --git a/src/app/panels/graph/module.js b/src/app/panels/graph/module.js index ec914adedfd..2c8f78f6f3b 100644 --- a/src/app/panels/graph/module.js +++ b/src/app/panels/graph/module.js @@ -19,7 +19,7 @@ function (angular, app, $, _, kbn, moment, TimeSeries, PanelMeta) { module.directive('grafanaPanelGraph', function() { return { controller: 'GraphCtrl', - templateUrl: '/app/panels/graph/module.html', + templateUrl: 'app/panels/graph/module.html', }; }); diff --git a/src/app/panels/singlestat/module.js b/src/app/panels/singlestat/module.js index b802dd44ab5..56072bf4f73 100644 --- a/src/app/panels/singlestat/module.js +++ b/src/app/panels/singlestat/module.js @@ -16,7 +16,7 @@ function (angular, app, _, TimeSeries, kbn, PanelMeta) { module.directive('grafanaPanelSinglestat', function() { return { controller: 'SingleStatCtrl', - templateUrl: '/app/panels/singlestat/module.html', + templateUrl: 'app/panels/singlestat/module.html', }; }); diff --git a/src/app/panels/text/module.js b/src/app/panels/text/module.js index 1690293c090..a2af73654b2 100644 --- a/src/app/panels/text/module.js +++ b/src/app/panels/text/module.js @@ -16,7 +16,7 @@ function (angular, app, _, require, PanelMeta) { module.directive('grafanaPanelText', function() { return { controller: 'TextPanelCtrl', - templateUrl: '/app/panels/text/module.html', + templateUrl: 'app/panels/text/module.html', }; }); diff --git a/tasks/options/ngtemplates.js b/tasks/options/ngtemplates.js index bf6eb86930a..a20624a5ff9 100644 --- a/tasks/options/ngtemplates.js +++ b/tasks/options/ngtemplates.js @@ -2,7 +2,7 @@ module.exports = function(config) { return { grafana: { cwd: '<%= tempDir %>', - src: ['app/**/*.html', '!app/panels/*/module.html'], + src: ['app/**/*.html'], dest: '<%= tempDir %>/app/components/partials.js', options: { bootstrap: function(module, script) {