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
5846c710
Commit
5846c710
authored
Aug 16, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed name of some partials and controllers
parent
142f081d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
76 additions
and
71 deletions
+76
-71
src/app/controllers/all.js
+2
-2
src/app/controllers/dashboardCtrl.js
+1
-1
src/app/controllers/dashboardNavCtrl.js
+1
-1
src/app/partials/dashboard.html
+4
-11
src/app/partials/dashboard_topnav.html
+68
-56
No files found.
src/app/controllers/all.js
View file @
5846c710
define
([
'./grafanaCtrl'
,
'./dash'
,
'./dash
Loader
'
,
'./dash
boardCtrl
'
,
'./dash
boardNavCtrl
'
,
'./row'
,
'./submenuCtrl'
,
'./pulldown'
,
...
...
src/app/controllers/dash.js
→
src/app/controllers/dash
boardCtrl
.js
View file @
5846c710
...
...
@@ -10,7 +10,7 @@ function (angular, $, config, _) {
var
module
=
angular
.
module
(
'grafana.controllers'
);
module
.
controller
(
'DashCtrl'
,
function
(
module
.
controller
(
'Dash
board
Ctrl'
,
function
(
$scope
,
$rootScope
,
dashboardKeybindings
,
filterSrv
,
dashboardSrv
,
dashboardViewStateSrv
,
panelMoveSrv
,
timer
)
{
...
...
src/app/controllers/dash
Loader
.js
→
src/app/controllers/dash
boardNavCtrl
.js
View file @
5846c710
...
...
@@ -10,7 +10,7 @@ function (angular, _, moment, config) {
var
module
=
angular
.
module
(
'grafana.controllers'
);
module
.
controller
(
'
dashLoader'
,
function
(
$scope
,
$rootScope
,
$http
,
alertSrv
,
$location
,
playlistSrv
,
datasourceSrv
)
{
module
.
controller
(
'
DashboardNavCtrl'
,
function
(
$scope
,
$rootScope
,
alertSrv
,
$location
,
playlistSrv
,
datasourceSrv
)
{
$scope
.
init
=
function
()
{
$scope
.
db
=
datasourceSrv
.
getGrafanaDB
();
...
...
src/app/partials/dashboard.html
View file @
5846c710
<div
ng-controller=
"DashCtrl"
body-class
ng-class=
"{'dashboard-fullscreen': dashboardViewState.fullscreen}"
>
<div
ng-controller=
"Dash
board
Ctrl"
body-class
ng-class=
"{'dashboard-fullscreen': dashboardViewState.fullscreen}"
>
<div
class=
"navbar navbar-static-top"
>
<div
class=
"navbar-inner"
>
<div
class=
"container-fluid"
>
<span
class=
"brand"
><img
src=
"img/small.png"
bs-tooltip=
"'Grafana'"
data-placement=
"bottom"
>
{{dashboard.title}}
</span>
<ul
class=
"nav pull-right"
ng-controller=
'dashLoader'
ng-init=
"init()"
ng-include=
"'app/partials/dashLoader.html'"
>
</ul>
</div>
</div>
</div>
<div
ng-include=
"'app/partials/dashboard_topnav.html'"
>
</div>
<div
class=
"submenu-controls"
>
<div
class=
"submenu-controls"
>
<div
class=
"submenu-panel"
ng-controller=
"SubmenuCtrl"
ng-repeat=
"pulldown in dashboard.pulldowns | filter:{ enable: true }"
>
<div
class=
"submenu-panel-title"
>
<span
class=
"small"
><strong>
{{pulldown.type}}:
</strong></span>
...
...
src/app/partials/dash
Loader
.html
→
src/app/partials/dash
board_topnav
.html
View file @
5846c710
<
li
ng-show=
"dashboardViewState.fullscreen
"
>
<a
ng-click=
"exitFullscreen()
"
>
Back to dashboard
</a
>
</li
>
<
div
class=
"navbar navbar-static-top
"
>
<div
class=
"navbar-inner
"
>
<div
class=
"container-fluid"
>
<span
class=
"brand"
><img
src=
"img/small.png"
bs-tooltip=
"'Grafana'"
data-placement=
"bottom"
>
{{dashboard.title}}
</span
>
<ul
class=
"nav pull-right"
ng-controller=
'DashboardNavCtrl'
ng-init=
"init()"
>
<li
class=
"grafana-menu-zoom-out
"
>
<a
class=
'small'
ng-click=
'zoom(2)'
>
Zoom Out
</a>
</li>
<li
ng-show=
"dashboardViewState.fullscreen
"
>
<a
ng-click=
"exitFullscreen()"
>
Back to dashboard
</a>
</li>
<li
ng-repeat=
"pulldown in dashboard.nav"
ng-controller=
"PulldownCtrl"
ng-show=
"pulldown.enable"
>
<grafana-simple-panel
type=
"pulldown.type"
ng-cloak
>
</grafana-simple-panel>
</li>
<li
class=
"grafana-menu-zoom-out"
>
<a
class=
'small'
ng-click=
'zoom(2)'
>
Zoom Out
</a>
</li>
<li
class=
"dropdown grafana-menu-sav
e"
>
<a
href=
"#"
bs-tooltip=
"'Save'"
data-placement=
"bottom"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
ng-click=
"openSaveDropdown()"
>
<i
class=
'icon-save'
></i
>
</a
>
<li
ng-repeat=
"pulldown in dashboard.nav"
ng-controller=
"PulldownCtrl"
ng-show=
"pulldown.enabl
e"
>
<grafana-simple-panel
type=
"pulldown.type"
ng-cloak
>
</grafana-simple-panel
>
</li
>
<ul
class=
"save-dashboard-dropdown dropdown-menu"
ng-if=
"saveDropdownOpened"
>
<li>
<form
class=
"input-prepend nomargin save-dashboard-dropdown-save-form"
>
<input
class=
'input-medium'
ng-model=
"dashboard.title"
type=
"text"
/>
<button
class=
"btn"
ng-click=
"saveDashboard()"
><i
class=
"icon-save"
></i></button>
</form>
</li>
<li
class=
"dropdown grafana-menu-save"
>
<a
href=
"#"
bs-tooltip=
"'Save'"
data-placement=
"bottom"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
ng-click=
"openSaveDropdown()"
>
<i
class=
'icon-save'
></i>
</a>
<li>
<a
class=
"link"
ng-click=
"set_default()"
>
Save as Home
</a>
</li>
<li>
<a
class=
"link"
ng-click=
"purge_default()"
>
Reset Home
</a>
</li>
<li
ng-show=
"!isFavorite"
>
<a
class=
"link"
ng-click=
"markAsFavorite()"
>
Mark as favorite
</a>
</li>
<li
ng-show=
"isFavorite"
>
<a
class=
"link"
ng-click=
"removeAsFavorite()"
>
Remove as favorite
</a>
</li>
<li>
<a
class=
"link"
ng-click=
"exportDashboard()"
>
Export dashboard
</a>
</li>
<li
ng-show=
"db.saveTemp"
>
<a
bs-tooltip=
"'Share'"
data-placement=
"bottom"
ng-click=
"saveForSharing()"
config-modal=
"app/partials/dashLoaderShare.html"
>
Share temp copy
</a>
</li>
</ul>
</li>
<ul
class=
"save-dashboard-dropdown dropdown-menu"
ng-if=
"saveDropdownOpened"
>
<li>
<form
class=
"input-prepend nomargin save-dashboard-dropdown-save-form"
>
<input
class=
'input-medium'
ng-model=
"dashboard.title"
type=
"text"
/>
<button
class=
"btn"
ng-click=
"saveDashboard()"
><i
class=
"icon-save"
></i></button>
</form>
</li>
<li
class=
"dropdown grafana-menu-load"
ng-controller=
"SearchCtrl"
ng-init=
"init()"
ng-include=
"'app/partials/search.html'"
>
</li>
<li>
<a
class=
"link"
ng-click=
"set_default()"
>
Save as Home
</a>
</li>
<li>
<a
class=
"link"
ng-click=
"purge_default()"
>
Reset Home
</a>
</li>
<li
ng-show=
"!isFavorite"
>
<a
class=
"link"
ng-click=
"markAsFavorite()"
>
Mark as favorite
</a>
</li>
<li
ng-show=
"isFavorite"
>
<a
class=
"link"
ng-click=
"removeAsFavorite()"
>
Remove as favorite
</a>
</li>
<li>
<a
class=
"link"
ng-click=
"exportDashboard()"
>
Export dashboard
</a>
</li>
<li
ng-show=
"db.saveTemp"
>
<a
bs-tooltip=
"'Share'"
data-placement=
"bottom"
ng-click=
"saveForSharing()"
config-modal=
"app/partials/dashLoaderShare.html"
>
Share temp copy
</a>
</li>
</ul>
</li>
<li
class=
"grafana-menu-home"
><a
bs-tooltip=
"'Goto saved default'"
data-placement=
"bottom"
href=
'#/'
><i
class=
'icon-home'
></i></a></li>
<li
class=
"dropdown grafana-menu-load"
ng-controller=
"SearchCtrl"
ng-init=
"init()"
ng-include=
"'app/partials/search.html'"
>
</li>
<li
class=
"grafana-menu-edit"
ng-show=
"dashboard.editable"
bs-tooltip=
"'Configure dashboard'"
data-placement=
"bottom"
><a
class=
"link"
config-modal=
"app/partials/dasheditor.html"
><i
class=
'icon-cog pointer'
></i></a></li>
<li
class=
"grafana-menu-home"
><a
bs-tooltip=
"'Goto saved default'"
data-placement=
"bottom"
href=
'#/'
><i
class=
'icon-home'
></i></a></li>
<li
class=
"grafana-menu-edit"
ng-show=
"dashboard.editable"
bs-tooltip=
"'Configure dashboard'"
data-placement=
"bottom"
><a
class=
"link"
config-modal=
"app/partials/dasheditor.html"
><i
class=
'icon-cog pointer'
></i></a></li>
<li
class=
"grafana-menu-stop-playlist hide"
>
<a
class=
'small'
ng-click=
'stopPlaylist(2)'
>
Stop playlist
</a>
</li>
</ul>
</div>
</div>
</div>
<li
class=
"grafana-menu-stop-playlist hide"
>
<a
class=
'small'
ng-click=
'stopPlaylist(2)'
>
Stop playlist
</a>
</li>
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