refer to plugins are ExternalPlugin instead of thirdParty

This commit is contained in:
woodsaj
2015-11-11 14:30:07 +08:00
parent cf89b565a6
commit d503c5d83d
10 changed files with 112 additions and 107 deletions

View File

@@ -13,8 +13,8 @@
[[else]]
<link rel="stylesheet" href="[[.AppSubUrl]]/css/grafana.dark.min.css">
[[end]]
[[ range $css := .ThirdPartyCss ]]
<link rel="stylesheet" href="[[$.AppSubUrl]]/thirdparty[[ $css ]]">
[[ range $css := .ExternalPluginCss ]]
<link rel="stylesheet" href="[[$.AppSubUrl]]/plugins[[ $css ]]">
[[ end ]]
<link rel="icon" type="image/png" href="[[.AppSubUrl]]/img/fav32.png">
@@ -56,16 +56,16 @@
settings: [[.Settings]],
};
window.thirdParty = {
MainLinks: [[.ThirdPartyMenu]]
window.externalPlugins = {
MainLinks: [[.ExternalPluginMenu]]
};
require(['app/app'], function (app) {
app.boot();
})
</script>
[[ range $js := .ThirdPartyJs]]
<script src="[[$.AppSubUrl]]/thirdparty[[ $js ]]"></script>
[[ range $js := .ExternalPluginJs]]
<script src="[[$.AppSubUrl]]/plugins[[ $js ]]"></script>
[[ end ]]
[[if .GoogleAnalyticsId]]
<script>