|
@@ -316,6 +316,19 @@ func setIndexViewData(c *m.ReqContext) (*dtos.IndexViewData, error) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if c.IsGrafanaAdmin {
|
|
if c.IsGrafanaAdmin {
|
|
|
|
|
+ children := []*dtos.NavLink{
|
|
|
|
|
+ {Text: "Users", Id: "global-users", Url: setting.AppSubUrl + "/admin/users", Icon: "gicon gicon-user"},
|
|
|
|
|
+ {Text: "Orgs", Id: "global-orgs", Url: setting.AppSubUrl + "/admin/orgs", Icon: "gicon gicon-org"},
|
|
|
|
|
+ {Text: "Settings", Id: "server-settings", Url: setting.AppSubUrl + "/admin/settings", Icon: "gicon gicon-preferences"},
|
|
|
|
|
+ {Text: "Stats", Id: "server-stats", Url: setting.AppSubUrl + "/admin/stats", Icon: "fa fa-fw fa-bar-chart"},
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if setting.IsEnterprise {
|
|
|
|
|
+ children = append(children, &dtos.NavLink{Text: "Licensing", Id: "licensing", Url: setting.AppSubUrl + "/admin/licensing", Icon: "fa fa-fw fa-unlock-alt"})
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ children = append(children, &dtos.NavLink{Text: "Style Guide", Id: "styleguide", Url: setting.AppSubUrl + "/styleguide", Icon: "fa fa-fw fa-eyedropper"})
|
|
|
|
|
+
|
|
|
cfgNode.Children = append(cfgNode.Children, &dtos.NavLink{
|
|
cfgNode.Children = append(cfgNode.Children, &dtos.NavLink{
|
|
|
Text: "Server Admin",
|
|
Text: "Server Admin",
|
|
|
HideFromTabs: true,
|
|
HideFromTabs: true,
|
|
@@ -323,13 +336,7 @@ func setIndexViewData(c *m.ReqContext) (*dtos.IndexViewData, error) {
|
|
|
Id: "admin",
|
|
Id: "admin",
|
|
|
Icon: "gicon gicon-shield",
|
|
Icon: "gicon gicon-shield",
|
|
|
Url: setting.AppSubUrl + "/admin/users",
|
|
Url: setting.AppSubUrl + "/admin/users",
|
|
|
- Children: []*dtos.NavLink{
|
|
|
|
|
- {Text: "Users", Id: "global-users", Url: setting.AppSubUrl + "/admin/users", Icon: "gicon gicon-user"},
|
|
|
|
|
- {Text: "Orgs", Id: "global-orgs", Url: setting.AppSubUrl + "/admin/orgs", Icon: "gicon gicon-org"},
|
|
|
|
|
- {Text: "Settings", Id: "server-settings", Url: setting.AppSubUrl + "/admin/settings", Icon: "gicon gicon-preferences"},
|
|
|
|
|
- {Text: "Stats", Id: "server-stats", Url: setting.AppSubUrl + "/admin/stats", Icon: "fa fa-fw fa-bar-chart"},
|
|
|
|
|
- {Text: "Style Guide", Id: "styleguide", Url: setting.AppSubUrl + "/styleguide", Icon: "fa fa-fw fa-eyedropper"},
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ Children: children,
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|