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
f0ecbd38
Commit
f0ecbd38
authored
Feb 09, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(apps): removed some on hover stuff from sidemenu to make it ready to merge to master
parent
9dcfe6dc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
14 deletions
+8
-14
pkg/api/index.go
+7
-4
public/app/core/components/sidemenu/sidemenu.html
+1
-2
public/app/core/components/sidemenu/sidemenu.ts
+0
-1
public/less/sidemenu.less
+0
-7
No files found.
pkg/api/index.go
View file @
f0ecbd38
...
...
@@ -52,12 +52,15 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) {
Text
:
"Dashboards"
,
Icon
:
"fa fa-fw fa-th-large"
,
Url
:
setting
.
AppSubUrl
+
"/"
,
Children
:
[]
*
dtos
.
NavLink
{
{
Text
:
"Playlists"
,
Icon
:
"fa fa-fw fa-list"
,
Url
:
setting
.
AppSubUrl
+
"/playlists"
},
{
Text
:
"Snapshots"
,
Icon
:
"fa-fw icon-gf icon-gf-snapshot"
,
Url
:
setting
.
AppSubUrl
+
"/dashboard/snapshots"
},
},
//
Children: []*dtos.NavLink{
//
{Text: "Playlists", Icon: "fa fa-fw fa-list", Url: setting.AppSubUrl + "/playlists"},
//
{Text: "Snapshots", Icon: "fa-fw icon-gf icon-gf-snapshot", Url: setting.AppSubUrl + "/dashboard/snapshots"},
//
},
})
data
.
MainNavLinks
=
append
(
data
.
MainNavLinks
,
&
dtos
.
NavLink
{
Text
:
"Playlists"
,
Icon
:
"fa fa-fw fa-list"
,
Url
:
setting
.
AppSubUrl
+
"/playlists"
})
data
.
MainNavLinks
=
append
(
data
.
MainNavLinks
,
&
dtos
.
NavLink
{
Text
:
"Snapshots"
,
Icon
:
"fa-fw icon-gf icon-gf-snapshot"
,
Url
:
setting
.
AppSubUrl
+
"/dashboard/snapshots"
})
if
c
.
OrgRole
==
m
.
ROLE_ADMIN
{
data
.
MainNavLinks
=
append
(
data
.
MainNavLinks
,
&
dtos
.
NavLink
{
Text
:
"Data Sources"
,
...
...
public/app/core/components/sidemenu/sidemenu.html
View file @
f0ecbd38
<ul
class=
"sidemenu sidemenu-main"
>
<li
class=
"sidemenu-org-section"
ng-if=
"ctrl.isSignedIn"
>
<div
class=
"sidemenu-org"
>
<div
class=
"sidemenu-org"
data-toggle=
"dropdown"
ng-click=
"ctrl.openUserDropdown()"
>
<div
class=
"sidemenu-org-avatar"
>
<img
ng-src=
"{{ctrl.user.gravatarUrl}}"
>
</div>
...
...
@@ -43,7 +43,6 @@
<img
ng-src=
"{{item.img}}"
ng-show=
"item.img"
>
</span>
<span
class=
"sidemenu-item-text"
>
{{item.text}}
</span>
<i
class=
"fa fa-caret-right small"
ng-show=
"item.children"
></i>
</a>
<ul
class=
"dropdown-menu"
role=
"menu"
ng-if=
"item.children"
>
<li
ng-repeat=
"child in item.children"
>
...
...
public/app/core/components/sidemenu/sidemenu.ts
View file @
f0ecbd38
...
...
@@ -38,7 +38,6 @@ export class SideMenuCtrl {
setupMainNav
()
{
this
.
mainLinks
=
config
.
bootData
.
mainNavLinks
;
this
.
openUserDropdown
();
}
openUserDropdown
()
{
...
...
public/less/sidemenu.less
View file @
f0ecbd38
...
...
@@ -76,13 +76,6 @@
color: @linkColor;
}
}
li:hover {
position: relative;
.dropdown-menu {
display: block;
}
}
}
.sidemenu-main-link {
...
...
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