Fix missing tab labels

fixes #8518
This commit is contained in:
Johannes Meyer 2015-02-27 09:32:44 +01:00
parent 82017da85f
commit f2259557c8
3 changed files with 10 additions and 7 deletions

View File

@ -121,7 +121,8 @@ class ConfigController extends ActionController
// @TODO(el): This seems not natural to me. Module configuration should have its own controller.
$this->view->tabs = Widget::create('tabs')
->add('modules', array(
'title' => $this->translate('Modules'),
'label' => $this->translate('Modules'),
'title' => $this->translate('List intalled modules'),
'url' => 'config/modules'
))
->activate('modules');

View File

@ -249,8 +249,9 @@ class DashboardController extends ActionController
$this->view->tabs->add(
'Add',
array(
'title' => '+',
'url' => Url::fromPath('dashboard/new-dashlet')
'label' => '+',
'title' => 'Add a dashlet to an existing or new dashboard',
'url' => Url::fromPath('dashboard/new-dashlet')
)
);
$this->view->dashboard = $this->dashboard;

View File

@ -24,14 +24,15 @@ class Doc_StyleController extends Controller
return Widget::create('tabs')->add(
'guide',
array(
'title' => $this->translate('Style Guide'),
'url' => 'doc/style/guide'
'label' => $this->translate('Style Guide'),
'url' => 'doc/style/guide'
)
)->add(
'font',
array(
'title' => $this->translate('Icons'),
'url' => 'doc/style/font'
'label' => $this->translate('Icons'),
'title' => $this->translate('List all available icons'),
'url' => 'doc/style/font'
)
);
}