mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
added global page title prefix setting
This commit is contained in:
parent
aa03de8e52
commit
2b1dcaf5e3
@ -14,6 +14,7 @@ function (_, crypto) {
|
||||
*/
|
||||
var defaults = {
|
||||
datasources : {},
|
||||
title : 'Grafana - ',
|
||||
panels : ['graph', 'text'],
|
||||
plugins : {},
|
||||
default_route : '/dashboard/file/default.json',
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user