Logos: Refactoring a bit how logos are rendered (#21421)

This commit is contained in:
Torkel Ödegaard
2020-01-10 22:15:16 +01:00
committed by GitHub
parent cfba25630e
commit 35679d4689
7 changed files with 24 additions and 17 deletions

View File

@@ -15,6 +15,8 @@ type IndexViewData struct {
NewGrafanaVersion string
AppName string
AppNameBodyClass string
FavIcon string
AppleTouchIcon string
}
type PluginCss struct {

View File

@@ -85,6 +85,8 @@ func (hs *HTTPServer) setIndexViewData(c *m.ReqContext) (*dtos.IndexViewData, er
NewGrafanaVersionExists: plugins.GrafanaHasUpdate,
AppName: setting.ApplicationName,
AppNameBodyClass: getAppNameBodyClass(hs.License.HasValidLicense()),
FavIcon: "public/img/fav32.png",
AppleTouchIcon: "public/img/apple-touch-icon.png",
}
if setting.DisableGravatar {