mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 07:14:35 +02:00
Adjust dashboard, output-format and module tabs
This commit is contained in:
parent
6eb638f6b3
commit
a5514392db
@ -641,7 +641,7 @@ class Module
|
|||||||
$tabs->add('info', array(
|
$tabs->add('info', array(
|
||||||
'url' => 'config/module',
|
'url' => 'config/module',
|
||||||
'urlParams' => array('name' => $this->getName()),
|
'urlParams' => array('name' => $this->getName()),
|
||||||
'title' => 'Module: ' . $this->getName()
|
'label' => 'Module: ' . $this->getName()
|
||||||
));
|
));
|
||||||
foreach ($this->configTabs as $name => $config) {
|
foreach ($this->configTabs as $name => $config) {
|
||||||
$tabs->add($name, $config);
|
$tabs->add($name, $config);
|
||||||
|
@ -24,7 +24,7 @@ class DashboardAction implements Tabextension
|
|||||||
'dashboard',
|
'dashboard',
|
||||||
array(
|
array(
|
||||||
'icon' => 'dashboard',
|
'icon' => 'dashboard',
|
||||||
'title' => 'Add To Dashboard',
|
'label' => 'Add To Dashboard',
|
||||||
'url' => Url::fromPath('dashboard/new-dashlet'),
|
'url' => Url::fromPath('dashboard/new-dashlet'),
|
||||||
'urlParams' => array(
|
'urlParams' => array(
|
||||||
'url' => rawurlencode(Url::fromRequest()->getRelativeUrl())
|
'url' => rawurlencode(Url::fromRequest()->getRelativeUrl())
|
||||||
|
@ -22,7 +22,7 @@ class DashboardSettings implements Tabextension
|
|||||||
'dashboard_add',
|
'dashboard_add',
|
||||||
array(
|
array(
|
||||||
'icon' => 'img/icons/dashboard.png',
|
'icon' => 'img/icons/dashboard.png',
|
||||||
'title' => t('Add To Dashboard'),
|
'label' => t('Add To Dashboard'),
|
||||||
'url' => Url::fromPath('dashboard/new-dashlet')
|
'url' => Url::fromPath('dashboard/new-dashlet')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -30,9 +30,9 @@ class DashboardSettings implements Tabextension
|
|||||||
$tabs->addAsDropdown(
|
$tabs->addAsDropdown(
|
||||||
'dashboard_settings',
|
'dashboard_settings',
|
||||||
array(
|
array(
|
||||||
'icon' => 'img/icons/dashboard.png',
|
'icon' => 'img/icons/dashboard.png',
|
||||||
'title' => t('Settings'),
|
'label' => t('Settings'),
|
||||||
'url' => Url::fromPath('dashboard/settings')
|
'url' => Url::fromPath('dashboard/settings')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ class OutputFormat implements Tabextension
|
|||||||
if (Platform::extensionLoaded('gd')) {
|
if (Platform::extensionLoaded('gd')) {
|
||||||
$supportedTypes[self::TYPE_PDF] = array(
|
$supportedTypes[self::TYPE_PDF] = array(
|
||||||
'name' => 'pdf',
|
'name' => 'pdf',
|
||||||
'title' => 'PDF',
|
'label' => 'PDF',
|
||||||
'icon' => 'file-pdf',
|
'icon' => 'file-pdf',
|
||||||
'urlParams' => array('format' => 'pdf'),
|
'urlParams' => array('format' => 'pdf'),
|
||||||
);
|
);
|
||||||
@ -93,7 +93,7 @@ class OutputFormat implements Tabextension
|
|||||||
|
|
||||||
$supportedTypes[self::TYPE_CSV] = array(
|
$supportedTypes[self::TYPE_CSV] = array(
|
||||||
'name' => 'csv',
|
'name' => 'csv',
|
||||||
'title' => 'CSV',
|
'label' => 'CSV',
|
||||||
'icon' => 'file-excel',
|
'icon' => 'file-excel',
|
||||||
'urlParams' => array('format' => 'csv')
|
'urlParams' => array('format' => 'csv')
|
||||||
);
|
);
|
||||||
@ -101,7 +101,7 @@ class OutputFormat implements Tabextension
|
|||||||
if (Platform::extensionLoaded('json')) {
|
if (Platform::extensionLoaded('json')) {
|
||||||
$supportedTypes[self::TYPE_JSON] = array(
|
$supportedTypes[self::TYPE_JSON] = array(
|
||||||
'name' => 'json',
|
'name' => 'json',
|
||||||
'title' => 'JSON',
|
'label' => 'JSON',
|
||||||
'icon' => 'img/icons/json.png',
|
'icon' => 'img/icons/json.png',
|
||||||
'urlParams' => array('format' => 'json')
|
'urlParams' => array('format' => 'json')
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user