diff --git a/package.json b/package.json index 05599868fb9..8f5585d4c81 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "sinon": "1.17.6", "systemjs-builder": "^0.15.34", "tether": "^1.4.0", - "tether-drop": "^1.4.2", + "tether-drop": "git://github.com/torkelo/drop", "tslint": "^4.0.2", "typescript": "^2.1.4", "virtual-scroll": "^1.1.1" diff --git a/public/app/features/dashboard/partials/panel_info.html b/public/app/features/dashboard/partials/panel_info.html index 88802d7c32e..cdccf679829 100644 --- a/public/app/features/dashboard/partials/panel_info.html +++ b/public/app/features/dashboard/partials/panel_info.html @@ -10,8 +10,7 @@ -
diff --git a/public/app/features/panel/panel_ctrl.ts b/public/app/features/panel/panel_ctrl.ts index 492d2b6f5c0..c7e094cb71c 100644 --- a/public/app/features/panel/panel_ctrl.ts +++ b/public/app/features/panel/panel_ctrl.ts @@ -5,6 +5,7 @@ import _ from 'lodash'; import angular from 'angular'; import $ from 'jquery'; import {profiler} from 'app/core/profiler'; +import Remarkable from 'remarkable'; const TITLE_HEIGHT = 25; const EMPTY_TITLE_HEIGHT = 9; @@ -244,6 +245,25 @@ export class PanelCtrl { }); } + getPanelInfoContent() { + var markdown = this.error || this.panel.description; + var linkSrv = this.$injector.get('linkSrv'); + var templateSrv = this.$injector.get('templateSrv'); + var interpolatedMarkdown = templateSrv.replace(markdown, this.panel.scopedVars); + var html = new Remarkable().render(interpolatedMarkdown); + + if (this.panel.links && this.panel.links.length > 0) { + html += '