summaryrefslogtreecommitdiff
path: root/app/Controller/Config.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-11-02 15:06:41 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-11-02 15:06:41 -0500
commit37332ae2222706f8fb330dae780dc938512edcf5 (patch)
tree9161d539cc289179339162d6922c4d9dd2c30e63 /app/Controller/Config.php
parent8fe5df39d97ef851d11931fcf7e906ec08838ef7 (diff)
Change layout (experimental)
Diffstat (limited to 'app/Controller/Config.php')
-rw-r--r--app/Controller/Config.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/Controller/Config.php b/app/Controller/Config.php
index 7c8373c3..3e0b290b 100644
--- a/app/Controller/Config.php
+++ b/app/Controller/Config.php
@@ -20,9 +20,9 @@ class Config extends Base
*/
private function layout($template, array $params)
{
+ $params['board_selector'] = $this->projectPermission->getAllowedProjects($this->acl->getUserId());
$params['values'] = $this->config->getAll();
$params['errors'] = array();
- $params['menu'] = 'config';
$params['config_content_for_layout'] = $this->template->load($template, $params);
return $this->template->layout('config_layout', $params);
@@ -61,7 +61,7 @@ class Config extends Base
{
$this->response->html($this->layout('config_about', array(
'db_size' => $this->config->getDatabaseSize(),
- 'title' => t('About'),
+ 'title' => t('Settings').' &gt; '.t('About'),
)));
}
@@ -75,10 +75,10 @@ class Config extends Base
$this->common('application');
$this->response->html($this->layout('config_application', array(
- 'title' => t('Application settings'),
'languages' => $this->config->getLanguages(),
'timezones' => $this->config->getTimezones(),
'date_formats' => $this->dateParser->getAvailableFormats(),
+ 'title' => t('Settings').' &gt; '.t('Application settings'),
)));
}
@@ -92,8 +92,8 @@ class Config extends Base
$this->common('board');
$this->response->html($this->layout('config_board', array(
- 'title' => t('Board settings'),
'default_columns' => implode(', ', $this->board->getDefaultColumns()),
+ 'title' => t('Settings').' &gt; '.t('Board settings'),
)));
}
@@ -107,7 +107,7 @@ class Config extends Base
$this->common('webhook');
$this->response->html($this->layout('config_webhook', array(
- 'title' => t('Webhook settings'),
+ 'title' => t('Settings').' &gt; '.t('Webhook settings'),
)));
}
@@ -119,7 +119,7 @@ class Config extends Base
public function api()
{
$this->response->html($this->layout('config_api', array(
- 'title' => t('API'),
+ 'title' => t('Settings').' &gt; '.t('API'),
)));
}