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
2b1dcaf5
Commit
2b1dcaf5
authored
Aug 11, 2014
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added global page title prefix setting
parent
aa03de8e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletions
+13
-1
src/app/components/settings.js
+1
-0
src/app/controllers/dash.js
+1
-1
src/config.sample.js
+11
-0
No files found.
src/app/components/settings.js
View file @
2b1dcaf5
...
...
@@ -14,6 +14,7 @@ function (_, crypto) {
*/
var
defaults
=
{
datasources
:
{},
title
:
'Grafana - '
,
panels
:
[
'graph'
,
'text'
],
plugins
:
{},
default_route
:
'/dashboard/file/default.json'
,
...
...
src/app/controllers/dash.js
View file @
2b1dcaf5
...
...
@@ -40,7 +40,7 @@ function (angular, $, config, _) {
$scope
.
panelMoveOver
=
panelMove
.
onOver
;
$scope
.
panelMoveOut
=
panelMove
.
onOut
;
window
.
document
.
title
=
'Grafana - '
+
$scope
.
dashboard
.
title
;
window
.
document
.
title
=
(
config
.
title
?
config
.
title
:
''
)
+
$scope
.
dashboard
.
title
;
// start auto refresh
if
(
$scope
.
dashboard
.
refresh
)
{
...
...
src/config.sample.js
View file @
2b1dcaf5
...
...
@@ -73,6 +73,17 @@ function (Settings) {
* ========================================================
*/
/* title:
* The global page title prefix that is prepended before the specific dashboard titles.
* Defaults to 'Grafana - '.
*
* title: undefined, // default prefix, page title = 'Grafana - <dashboard title>'
* title: null, // no prefix, page title = <dashboard title>
* title: '', // no prefix, page title = <dashboard title>
* title: 'Custom | ', // custom prefix, page title = 'Custom | <dashboard title>'
*/
title
:
undefined
,
// specify the limit for dashboard search results
search
:
{
max_results
:
20
...
...
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