Adjust dashboard, output-format and module tabs

This commit is contained in:
Johannes Meyer 2015-02-23 17:03:11 +01:00
parent 6eb638f6b3
commit a5514392db
4 changed files with 9 additions and 9 deletions

View File

@ -641,7 +641,7 @@ class Module
$tabs->add('info', array(
'url' => 'config/module',
'urlParams' => array('name' => $this->getName()),
'title' => 'Module: ' . $this->getName()
'label' => 'Module: ' . $this->getName()
));
foreach ($this->configTabs as $name => $config) {
$tabs->add($name, $config);

View File

@ -24,7 +24,7 @@ class DashboardAction implements Tabextension
'dashboard',
array(
'icon' => 'dashboard',
'title' => 'Add To Dashboard',
'label' => 'Add To Dashboard',
'url' => Url::fromPath('dashboard/new-dashlet'),
'urlParams' => array(
'url' => rawurlencode(Url::fromRequest()->getRelativeUrl())

View File

@ -22,7 +22,7 @@ class DashboardSettings implements Tabextension
'dashboard_add',
array(
'icon' => 'img/icons/dashboard.png',
'title' => t('Add To Dashboard'),
'label' => t('Add To Dashboard'),
'url' => Url::fromPath('dashboard/new-dashlet')
)
);
@ -30,9 +30,9 @@ class DashboardSettings implements Tabextension
$tabs->addAsDropdown(
'dashboard_settings',
array(
'icon' => 'img/icons/dashboard.png',
'title' => t('Settings'),
'url' => Url::fromPath('dashboard/settings')
'icon' => 'img/icons/dashboard.png',
'label' => t('Settings'),
'url' => Url::fromPath('dashboard/settings')
)
);
}

View File

@ -85,7 +85,7 @@ class OutputFormat implements Tabextension
if (Platform::extensionLoaded('gd')) {
$supportedTypes[self::TYPE_PDF] = array(
'name' => 'pdf',
'title' => 'PDF',
'label' => 'PDF',
'icon' => 'file-pdf',
'urlParams' => array('format' => 'pdf'),
);
@ -93,7 +93,7 @@ class OutputFormat implements Tabextension
$supportedTypes[self::TYPE_CSV] = array(
'name' => 'csv',
'title' => 'CSV',
'label' => 'CSV',
'icon' => 'file-excel',
'urlParams' => array('format' => 'csv')
);
@ -101,7 +101,7 @@ class OutputFormat implements Tabextension
if (Platform::extensionLoaded('json')) {
$supportedTypes[self::TYPE_JSON] = array(
'name' => 'json',
'title' => 'JSON',
'label' => 'JSON',
'icon' => 'img/icons/json.png',
'urlParams' => array('format' => 'json')
);