Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
91ca5b6f
Commit
91ca5b6f
authored
Mar 01, 2016
by
Anthony Woods
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4208 from raintank/suppressNav
add supressNav property to plugin pages.
parents
00dc0783
a8c10dbc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
pkg/api/index.go
+6
-4
pkg/plugins/app_plugin.go
+5
-4
No files found.
pkg/api/index.go
View file @
91ca5b6f
...
...
@@ -90,10 +90,12 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) {
}
for
_
,
page
:=
range
plugin
.
Pages
{
pageLink
.
Children
=
append
(
pageLink
.
Children
,
&
dtos
.
NavLink
{
Url
:
setting
.
AppSubUrl
+
"/plugins/"
+
plugin
.
Id
+
"/page/"
+
page
.
Slug
,
Text
:
page
.
Name
,
})
if
!
page
.
SuppressNav
{
pageLink
.
Children
=
append
(
pageLink
.
Children
,
&
dtos
.
NavLink
{
Url
:
setting
.
AppSubUrl
+
"/plugins/"
+
plugin
.
Id
+
"/page/"
+
page
.
Slug
,
Text
:
page
.
Name
,
})
}
}
data
.
MainNavLinks
=
append
(
data
.
MainNavLinks
,
pageLink
)
...
...
pkg/plugins/app_plugin.go
View file @
91ca5b6f
...
...
@@ -9,10 +9,11 @@ import (
)
type
AppPluginPage
struct
{
Name
string
`json:"name"`
Slug
string
`json:"slug"`
Component
string
`json:"component"`
Role
models
.
RoleType
`json:"role"`
Name
string
`json:"name"`
Slug
string
`json:"slug"`
Component
string
`json:"component"`
Role
models
.
RoleType
`json:"role"`
SuppressNav
bool
`json:"suppressNav"`
}
type
AppPluginCss
struct
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment