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
496e5bda
Commit
496e5bda
authored
Feb 01, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More progress on new design
parent
f00e5936
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
92 additions
and
121 deletions
+92
-121
src/app/controllers/sidemenuCtrl.js
+18
-13
src/app/partials/sidemenu.html
+1
-1
src/css/less/grafana.less
+1
-82
src/css/less/navbar.less
+65
-0
src/css/less/sidemenu.less
+4
-22
src/views/index.html
+3
-3
No files found.
src/app/controllers/sidemenuCtrl.js
View file @
496e5bda
...
...
@@ -34,26 +34,23 @@ function (angular, _, $, config) {
text
:
"Account"
,
href
:
$scope
.
getUrl
(
"/account"
),
requireRole
:
"Admin"
,
icon
:
"fa fa-shield"
,
links
:
[
{
text
:
'Info'
,
href
:
$scope
.
getUrl
(
"/account"
)},
{
text
:
'Data sources'
,
href
:
$scope
.
getUrl
(
"/account/datasources"
)},
{
text
:
'Users'
,
href
:
$scope
.
getUrl
(
"/account/users"
)},
{
text
:
'API Keys'
,
href
:
$scope
.
getUrl
(
"/account/apikeys"
)},
]
});
}
if
(
$scope
.
grafana
.
user
.
isSignedIn
)
{
$scope
.
menu
.
push
({
text
:
"Profile"
,
href
:
$scope
.
getUrl
(
"/profile"
),
icon
:
"fa fa-user"
,
text
:
"Users"
,
href
:
$scope
.
getUrl
(
"/account/users"
),
requireRole
:
"Admin"
,
icon
:
"fa fa-users"
,
});
$scope
.
menu
.
push
({
text
:
"API Keys"
,
href
:
$scope
.
getUrl
(
"/account/apikeys"
),
requireRole
:
"Admin"
,
icon
:
"fa fa-key"
,
});
}
if
(
$scope
.
grafana
.
user
.
isSignedIn
)
{
$scope
.
menu
.
push
({
text
:
"
Sign out"
,
href
:
$scope
.
getUrl
(
"/logout
"
),
icon
:
"fa fa-
sign-out
"
,
text
:
"
Profile"
,
href
:
$scope
.
getUrl
(
"/profile
"
),
icon
:
"fa fa-
user
"
,
});
}
...
...
@@ -70,6 +67,14 @@ function (angular, _, $, config) {
});
}
if
(
$scope
.
grafana
.
user
.
isSignedIn
)
{
$scope
.
menu
.
push
({
text
:
"Sign out"
,
href
:
$scope
.
getUrl
(
"/logout"
),
target
:
"_self"
,
icon
:
"fa fa-sign-out"
,
});
}
$scope
.
onAppEvent
(
'$routeUpdate'
,
function
()
{
$scope
.
updateState
();
});
...
...
src/app/partials/sidemenu.html
View file @
496e5bda
...
...
@@ -13,7 +13,7 @@
</li>
<li
ng-repeat=
"item in menu"
ng-class=
"{'active': item.active}"
>
<a
href=
"{{item.href}}"
class=
"sidemenu-item"
>
<a
href=
"{{item.href}}"
class=
"sidemenu-item"
target=
"{{item.target}}"
>
<span
class=
"sidemenu-icon"
><i
class=
"{{item.icon}}"
></i></span>
<span
class=
"sidemenu-item-text"
>
{{item.text}}
</span>
</a>
...
...
src/css/less/grafana.less
View file @
496e5bda
...
...
@@ -11,6 +11,7 @@
@import "tightform.less";
@import "sidemenu.less";
@import "gfbox.less";
@import "navbar.less";
.row-control-inner {
padding:0px;
...
...
@@ -51,70 +52,6 @@
width: 24px;
}
.navbar-inner {
padding-left: 0px;
}
.navbar .nav>li>a {
padding: 19px 15px 8px;
}
.top-nav {
float: left;
}
.top-nav-menu-btn {
display: block;
float: left;
padding: 11px 6px 12px 14px;
position: relative;
border-right: 1px solid @black;
font-weight: bold;
font-size: 90%;
i {
font-size: 170%;
color: @gray;
padding: 0px 0px 0px 6px;
position: relative;
top: 4px;
}
}
.top-nav-breadcrumb {
display: block;
float: left;
padding: 18px 9px 8px 12px;
font-size: 1.4em;
font-weight: bold;
color: darken(@gray, 10%);
i {
padding-left: 9px;
}
}
.top-nav-section {
display: block;
float: left;
padding: 19px 9px 8px 0;
font-weight: bold;
i {
padding-left: 8px;
}
}
.top-nav-title {
display: block;
float: left;
padding: 18px 10px 10px 0px;
font-size: 1.3em;
font-weight: bold;
i {
padding-left: 4px;
position: relative;
top: 2px;
}
}
.row-button {
width: 24px;
}
...
...
@@ -128,24 +65,6 @@
top: 30%;
}
.grafana-search-metric-actions {
visibility: hidden;
padding-left: 20px;
}
.grafana-search-metric-name {
white-space: nowrap;
}
.grafana-search-metric-result:hover {
.grafana-search-metric-actions {
visibility: visible;
}
.grafana-search-metric-name {
color: @blue;
}
}
.dashboard-fullscreen {
.main-view-container {
overflow: hidden;
...
...
src/css/less/navbar.less
0 → 100644
View file @
496e5bda
.navbar-inner {
padding-left: 0px;
}
.navbar .nav>li>a {
padding: 19px 15px 8px;
}
.top-nav {
float: left;
}
.top-nav-menu-btn {
display: block;
float: left;
padding: 11px 6px 12px 14px;
position: relative;
border-right: 1px solid @black;
font-weight: bold;
font-size: 90%;
i {
font-size: 170%;
color: @gray;
padding: 0px 0px 0px 6px;
position: relative;
top: 4px;
}
}
.top-nav-breadcrumb {
display: block;
float: left;
padding: 18px 9px 8px 12px;
font-size: 1.4em;
font-weight: bold;
color: darken(@gray, 10%);
i {
padding-left: 9px;
}
}
.top-nav-section {
display: block;
float: left;
padding: 19px 9px 8px 0;
font-weight: bold;
i {
padding-left: 8px;
}
}
.top-nav-title {
display: block;
float: left;
padding: 18px 10px 10px 0px;
font-size: 1.3em;
font-weight: bold;
i {
padding-left: 4px;
position: relative;
top: 2px;
}
}
src/css/less/sidemenu.less
View file @
496e5bda
.sidemenu-
contain
er {
.sidemenu-
wrapp
er {
display: none;
a:focus {
text-decoration: none;
...
...
@@ -6,7 +6,7 @@
}
.sidemenu-open {
.sidemenu-
contain
er {
.sidemenu-
wrapp
er {
display: block;
position: absolute;
top: 0;
...
...
@@ -23,7 +23,7 @@
width: auto;
}
.
pro-
main-view {
.main-view {
padding-left: 200px;
}
...
...
@@ -95,25 +95,7 @@
.sidemenu-item-text {
padding-left: 15px;
text-shadow: 1px 0px 10px @orange;
}
}
.sidemenu-logo-container {
background: @grafanaPanelBackground;
text-align: center;
border-bottom: 1px solid black;
img {
display: inline-block;
width: 102px;
padding: 6px 0px 6px 11px;
}
}
.sidemenu-toggle {
float: right;
display: block;
font-size: 200%;
padding: 11px 8px 11px 8px;
background: @grafanaTargetFuncBackground;
}
src/views/index.html
View file @
496e5bda
...
...
@@ -27,9 +27,9 @@
<body
ng-cloak
ng-controller=
"GrafanaCtrl"
>
<link
rel=
"stylesheet"
href=
"[[.AppSubUrl]]/css/grafana.light.min.css"
ng-if=
"grafana.style === 'light'"
>
<div
class=
"
pro-contain
er"
ng-class=
"{'sidemenu-open': grafana.sidemenu}"
>
<div
class=
"
main-view-wrapp
er"
ng-class=
"{'sidemenu-open': grafana.sidemenu}"
>
<aside
class=
"sidemenu-
contain
er"
ng-if=
"grafana.sidemenu"
>
<aside
class=
"sidemenu-
wrapp
er"
ng-if=
"grafana.sidemenu"
>
<div
ng-include=
"'app/partials/sidemenu.html'"
></div>
</aside>
...
...
@@ -43,7 +43,7 @@
</div>
</div>
<div
ng-view
class=
"
pro-
main-view"
></div>
<div
ng-view
class=
"main-view"
></div>
</div>
...
...
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