diff --git a/pkg/api/index.go b/pkg/api/index.go
index 3f4e5032905..da696df1210 100644
--- a/pkg/api/index.go
+++ b/pkg/api/index.go
@@ -99,8 +99,8 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) {
dashboardChildNavs := []*dtos.NavLink{
{Text: "Home", Url: setting.AppSubUrl + "/", Icon: "fa fa-fw fa-home"},
- {Text: "Playlists", Url: setting.AppSubUrl + "/playlists", Icon: "fa fa-fw fa-film"},
- {Text: "Snapshots", Url: setting.AppSubUrl + "/dashboard/snapshots", Icon: "icon-gf icon-gf-snapshot"},
+ {Text: "Playlists", Id: "playlists", Url: setting.AppSubUrl + "/playlists", Icon: "fa fa-fw fa-film"},
+ {Text: "Snapshots", Id: "snapshots", Url: setting.AppSubUrl + "/dashboard/snapshots", Icon: "icon-gf icon-gf-snapshot"},
}
data.NavTree = append(data.NavTree, &dtos.NavLink{
@@ -249,10 +249,11 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) {
Icon: "fa fa-fw fa-shield",
Url: setting.AppSubUrl + "/admin",
Children: []*dtos.NavLink{
- {Text: "Global Users", Url: setting.AppSubUrl + "/admin/users"},
- {Text: "Global Orgs", Url: setting.AppSubUrl + "/admin/orgs"},
- {Text: "Server Settings", Url: setting.AppSubUrl + "/admin/settings"},
- {Text: "Server Stats", Url: setting.AppSubUrl + "/admin/stats"},
+ {Text: "Global Users", Id: "global-users", Url: setting.AppSubUrl + "/admin/users"},
+ {Text: "Global Orgs", Id: "global-orgs", Url: setting.AppSubUrl + "/admin/orgs"},
+ {Text: "Server Settings", Id: "server-settings", Url: setting.AppSubUrl + "/admin/settings"},
+ {Text: "Server Stats", Id: "server-stats", Url: setting.AppSubUrl + "/admin/stats"},
+ {Text: "Style Guide", Id: "styleguide", Url: setting.AppSubUrl + "/admin/styleguide"},
},
})
}
diff --git a/public/app/core/components/gf_page.ts b/public/app/core/components/gf_page.ts
new file mode 100644
index 00000000000..d5ac3e55c88
--- /dev/null
+++ b/public/app/core/components/gf_page.ts
@@ -0,0 +1,42 @@
+///
A playlist rotates through a pre-selected list of Dashboards. A Playlist can be a great way to build situational awareness, or just show off your metrics to your team or visitors.
diff --git a/public/app/features/playlist/partials/playlists.html b/public/app/features/playlist/partials/playlists.html index 582174e44ff..b24d11bf70b 100644 --- a/public/app/features/playlist/partials/playlists.html +++ b/public/app/features/playlist/partials/playlists.html @@ -2,7 +2,7 @@| Name | Snapshot url | - - - - |
|---|
| {{snapshot.name}} | diff --git a/public/app/features/snapshot/snapshot_ctrl.ts b/public/app/features/snapshot/snapshot_ctrl.ts index 2817238203b..b4b33d80236 100644 --- a/public/app/features/snapshot/snapshot_ctrl.ts +++ b/public/app/features/snapshot/snapshot_ctrl.ts @@ -8,16 +8,8 @@ export class SnapshotsCtrl { snapshots: any; /** @ngInject */ - constructor(private $rootScope, private backendSrv) { - this.navModel = { - section: { - title: 'Snapshots', - icon: 'icon-gf icon-gf-snapshot', - url: 'dashboard/snapshots', - }, - menu: [], - }; - + constructor(private $rootScope, private backendSrv, navModelSrv) { + this.navModel = navModelSrv.getNav('dashboards', 'snapshots'); this.backendSrv.get('/api/dashboard/snapshots').then(result => { this.snapshots = result; }); diff --git a/public/app/features/styleguide/styleguide.html b/public/app/features/styleguide/styleguide.html index b6f1d626a13..4229349a030 100644 --- a/public/app/features/styleguide/styleguide.html +++ b/public/app/features/styleguide/styleguide.html @@ -2,7 +2,7 @@