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
384292b6
Commit
384292b6
authored
Dec 02, 2015
by
utkarshcmu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed metadata from dropdown, included in settings
parent
f88588db
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
53 deletions
+32
-53
public/app/core/directives/dash_edit_link.js
+1
-2
public/app/features/dashboard/partials/dashboardTopNav.html
+0
-1
public/app/features/dashboard/partials/metadata.html
+0
-49
public/app/features/dashboard/partials/settings.html
+31
-1
No files found.
public/app/core/directives/dash_edit_link.js
View file @
384292b6
...
@@ -8,8 +8,7 @@ function ($, coreModule) {
...
@@ -8,8 +8,7 @@ function ($, coreModule) {
var
editViewMap
=
{
var
editViewMap
=
{
'settings'
:
{
src
:
'app/features/dashboard/partials/settings.html'
,
title
:
"Settings"
},
'settings'
:
{
src
:
'app/features/dashboard/partials/settings.html'
,
title
:
"Settings"
},
'annotations'
:
{
src
:
'app/features/annotations/partials/editor.html'
,
title
:
"Annotations"
},
'annotations'
:
{
src
:
'app/features/annotations/partials/editor.html'
,
title
:
"Annotations"
},
'templating'
:
{
src
:
'app/features/templating/partials/editor.html'
,
title
:
"Templating"
},
'templating'
:
{
src
:
'app/features/templating/partials/editor.html'
,
title
:
"Templating"
}
'metadata'
:
{
src
:
'app/features/dashboard/partials/metadata.html'
,
title
:
"Metadata"
}
};
};
coreModule
.
directive
(
'dashEditorLink'
,
function
(
$timeout
)
{
coreModule
.
directive
(
'dashEditorLink'
,
function
(
$timeout
)
{
...
...
public/app/features/dashboard/partials/dashboardTopNav.html
View file @
384292b6
...
@@ -39,7 +39,6 @@
...
@@ -39,7 +39,6 @@
<li><a
class=
"pointer"
ng-click=
"editJson();"
>
View JSON
</a></li>
<li><a
class=
"pointer"
ng-click=
"editJson();"
>
View JSON
</a></li>
<li
ng-if=
"contextSrv.isEditor"
><a
class=
"pointer"
ng-click=
"saveDashboardAs();"
>
Save As...
</a></li>
<li
ng-if=
"contextSrv.isEditor"
><a
class=
"pointer"
ng-click=
"saveDashboardAs();"
>
Save As...
</a></li>
<li
ng-if=
"dashboardMeta.canSave"
><a
class=
"pointer"
ng-click=
"deleteDashboard();"
>
Delete dashboard
</a></li>
<li
ng-if=
"dashboardMeta.canSave"
><a
class=
"pointer"
ng-click=
"deleteDashboard();"
>
Delete dashboard
</a></li>
<li><a
class=
"pointer"
ng-click=
"openEditView('metadata');"
>
Metadata
</a></li>
</ul>
</ul>
</li>
</li>
</ul>
</ul>
...
...
public/app/features/dashboard/partials/metadata.html
deleted
100644 → 0
View file @
f88588db
<div
class=
"gf-box-header"
>
<div
class=
"gf-box-title"
>
<i
class=
"fa fa-info"
></i>
Metadata
</div>
<button
class=
"gf-box-header-close-btn"
ng-click=
"dismiss();"
>
<i
class=
"fa fa-remove"
></i>
</button>
</div>
<div
class=
"gf-box-body"
style=
"padding-bottom: 50px;"
>
<div
class=
"editor-row"
>
<div
class=
"tight-form-section"
>
<h5>
Dashboard info
</h5>
<div
class=
"tight-form"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
style=
"width: 120px"
>
Last updated at:
</li>
<li
class=
"tight-form-item"
style=
"width: 180px"
>
{{formatDate(dashboardMeta.updated)}}
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
<div
class=
"tight-form last"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
style=
"width: 120px"
>
Created at:
</li>
<li
class=
"tight-form-item"
style=
"width: 180px"
>
{{formatDate(dashboardMeta.created)}}
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
</div>
</div>
</div>
<div
class=
"gf-box-footer"
>
<div
class=
"grafana-version-info"
>
<span
class=
"editor-option small"
>
Grafana version: {{contextSrv.version}}
</span>
<span
grafana-version-check
>
</span>
</div>
</div>
public/app/features/dashboard/partials/settings.html
View file @
384292b6
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
</div>
</div>
<div
ng-model=
"editor.index"
bs-tabs
style=
"text-transform:capitalize;"
>
<div
ng-model=
"editor.index"
bs-tabs
style=
"text-transform:capitalize;"
>
<div
ng-repeat=
"tab in ['General', 'Rows', 'Links', 'Time picker']"
data-title=
"{{tab}}"
>
<div
ng-repeat=
"tab in ['General', 'Rows', 'Links', 'Time picker'
, 'Metadata'
]"
data-title=
"{{tab}}"
>
</div>
</div>
</div>
</div>
...
@@ -114,6 +114,36 @@
...
@@ -114,6 +114,36 @@
<gf-time-picker-settings
dashboard=
"dashboard"
></gf-time-picker-settings>
<gf-time-picker-settings
dashboard=
"dashboard"
></gf-time-picker-settings>
</div>
</div>
<div
ng-if=
"editor.index == 4"
>
<div
class=
"editor-row"
>
<div
class=
"tight-form-section"
>
<h5>
Info
</h5>
<div
class=
"tight-form"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
style=
"width: 120px"
>
Last updated at:
</li>
<li
class=
"tight-form-item"
style=
"width: 180px"
>
{{formatDate(dashboardMeta.updated)}}
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
<div
class=
"tight-form last"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
style=
"width: 120px"
>
Created at:
</li>
<li
class=
"tight-form-item"
style=
"width: 180px"
>
{{formatDate(dashboardMeta.created)}}
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"clearfix"
></div>
<div
class=
"clearfix"
></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