Commit ff913333 by Trent White

update sidebar

parent 581fb8eb
...@@ -3,7 +3,7 @@ init_cmds = [ ...@@ -3,7 +3,7 @@ init_cmds = [
["go", "build", "-o", "./bin/grafana-server"], ["go", "build", "-o", "./bin/grafana-server"],
["./bin/grafana-server"] ["./bin/grafana-server"]
] ]
watch_all = true watch_all = false
watch_dirs = [ watch_dirs = [
"$WORKDIR/pkg", "$WORKDIR/pkg",
"$WORKDIR/public/views", "$WORKDIR/public/views",
......
...@@ -50,32 +50,20 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) { ...@@ -50,32 +50,20 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) {
data.MainNavLinks = append(data.MainNavLinks, &dtos.NavLink{ data.MainNavLinks = append(data.MainNavLinks, &dtos.NavLink{
Text: "Dashboards", Text: "Dashboards",
Icon: "fa fa-fw fa-th-large", Icon: "icon-gf icon-gf-dashboard",
Url: "/", Url: "/",
}) })
data.MainNavLinks = append(data.MainNavLinks, &dtos.NavLink{
Text: "Playlists",
Icon: "fa fa-fw fa-list",
Url: "/playlists",
})
data.MainNavLinks = append(data.MainNavLinks, &dtos.NavLink{
Text: "Snapshots",
Icon: "fa-fw icon-gf icon-gf-snapshot",
Url: "/dashboard/snapshots",
})
if c.OrgRole == m.ROLE_ADMIN { if c.OrgRole == m.ROLE_ADMIN {
data.MainNavLinks = append(data.MainNavLinks, &dtos.NavLink{ data.MainNavLinks = append(data.MainNavLinks, &dtos.NavLink{
Text: "Data Sources", Text: "Data Sources",
Icon: "fa fa-fw fa-database", Icon: "icon-gf icon-gf-datasources",
Url: "/datasources", Url: "/datasources",
}) })
data.MainNavLinks = append(data.MainNavLinks, &dtos.NavLink{ data.MainNavLinks = append(data.MainNavLinks, &dtos.NavLink{
Text: "Apps", Text: "Plugins",
Icon: "fa fa-fw fa-cubes", Icon: "icon-gf icon-gf-apps",
Url: "/apps", Url: "/apps",
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment