@ -16,19 +16,25 @@
< / div >
< / div >
< div class = "gf-box-body" ng-repeat = "tab in tabs" ng-if = "editor.index == $index" >
< div class = "gf-box-body" ng-repeat = "tab in tabs" ng-if = "editor.index == $index" >
< ng-include src = "tab.src" > < / ng-include >
< div ng-include src = "tab.src" class = "share-modal-body" > < / div >
< / div >
< / div >
< / div >
< / div >
< script type = "text/ng-template" id = "shareEmbed.html" >
< script type = "text/ng-template" id = "shareEmbed.html" >
< h5 > IFrame embedding< / h5 >
< div class = "share-modal-big-icon" >
< p >
< i class = "fa fa-code" > < / i >
< em >
< / div >
< div class = "share-snapshot-header" >
< p class = "share-snapshot-info-text" >
The html code below can be pasted and included in another web page. Unless anonymous access
The html code below can be pasted and included in another web page. Unless anonymous access
is enabled the user viewing that page need to be signed into grafana for the graph to load.
is enabled the user viewing that page need to be signed into grafana for the graph to load.
< / em >
< / p >
< / p >
< / div >
< div ng-include src = "'shareLinkOptions.html'" > < / div >
< div class = "gf-form" >
< div class = "gf-form" >
< div class = "gf-form-row" >
< div class = "gf-form-row" >
< span class = "gf-fluid-input" >
< span class = "gf-fluid-input" >
@ -39,19 +45,54 @@
< / div >
< / div >
< / script >
< / script >
< script type = "text/ng-template" id = "shareLink.html" >
< script type = "text/ng-template" id = "shareLinkOptions.html" >
< h5 > Link options< / h5 >
< div class = "editor-row" style = "margin: 11px 20px 33px 20px" >
< div class = "gf-form" >
< div class = "section" >
< div class = "gf-form-row" >
< div class = "tight-form" >
< editor-checkbox text = "Current time range" model = "options.forCurrent" change = "buildUrl()" > < / editor-checkbox >
< ul class = "tight-form-list" >
< li class = "tight-form-item" style = "width: 170px;" >
< label class = "checkbox-label" for = "options.forCurrent" > Current time range< / label >
< / li >
< li class = "tight-form-item last" >
< input class = "cr1" id = "options.forCurrent" type = "checkbox" ng-model = "options.forCurrent" ng-checked = "options.forCurrent" ng-change = "buildUrl()" >
< label for = "options.forCurrent" class = "cr1" > < / label >
< / li >
< / ul >
< div class = "clearfix" > < / div >
< / div >
< div class = "tight-form" >
< ul class = "tight-form-list" >
< li class = "tight-form-item" style = "width: 170px" >
< label class = "checkbox-label" for = "options.includeTemplateVars" > Include template variables< / label >
< / li >
< li class = "tight-form-item last" >
< input class = "cr1" id = "options.includeTemplateVars" type = "checkbox" ng-model = "options.includeTemplateVars" ng-checked = "options.includeTemplateVars" ng-change = "buildUrl()" >
< label for = "options.includeTemplateVars" class = "cr1" > < / label >
< / li >
< / ul >
< div class = "clearfix" > < / div >
< / div >
< div class = "tight-form" >
< ul class = "tight-form-list" >
< li class = "tight-form-item" style = "width: 170px" >
Theme
< / li >
< li >
< select class = "input-small tight-form-input last" style = "width: 211px" ng-model = "options.theme" ng-options = "f as f for f in ['current', 'dark', 'light']" ng-change = "buildUrl()" > < / select >
< / li >
< / ul >
< div class = "clearfix" > < / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< div class = "gf-form" >
< / script >
< div class = "gf-form-row" >
< editor-checkbox text = "Include template variables" model = "options.includeTemplateVars" change = "buildUrl()" > < / editor-checkbox >
< script type = "text/ng-template" id = "shareLink.html" >
< / div >
< div class = "share-modal-big-icon" >
< i class = "fa fa-external-link" > < / i >
< / div >
< / div >
< br >
< div ng-include src = "'shareLinkOptions.html'" > < / div >
< div class = "gf-form" >
< div class = "gf-form" >
< div class = "gf-form-row" >
< div class = "gf-form-row" >
< button class = "btn btn-inverse pull-right" data-clipboard-text = "{{shareUrl}}" clipboard-button > < i class = "fa fa-clipboard" > < / i > Copy< / button >
< button class = "btn btn-inverse pull-right" data-clipboard-text = "{{shareUrl}}" clipboard-button > < i class = "fa fa-clipboard" > < / i > Copy< / button >
@ -66,8 +107,8 @@
< / script >
< / script >
< script type = "text/ng-template" id = "shareSnapshot.html" >
< script type = "text/ng-template" id = "shareSnapshot.html" >
< div class = "share-snapshot ng-cloak" ng-cloak ng-controller = "ShareSnapshotCtrl" >
< div class = "ng-cloak" ng-cloak ng-controller = "ShareSnapshotCtrl" >
< div style = "margin: 10px 0 ">
< div class = "share-modal-big-icon ">
< i ng-if = "loading" class = "fa fa-spinner fa-spin" > < / i >
< i ng-if = "loading" class = "fa fa-spinner fa-spin" > < / i >
< i ng-if = "!loading" class = "gf-icon gf-icon-snap-multi" > < / i >
< i ng-if = "!loading" class = "gf-icon gf-icon-snap-multi" > < / i >
< / div >
< / div >
@ -91,7 +132,7 @@
< / p >
< / p >
< / div >
< / div >
< div class = "editor-row" style = "margin: 11px 20px 33px 20px " >
< div class = "editor-row share-modal-options " style = "" >
< div class = "section" ng-if = "step === 1" >
< div class = "section" ng-if = "step === 1" >
< div class = "tight-form" >
< div class = "tight-form" >
< ul class = "tight-form-list" >
< ul class = "tight-form-list" >