Merge remote-tracking branch 'origin/master' into feature/redesign-7144

This commit is contained in:
Thomas Gelf 2014-11-17 11:23:36 +01:00
commit 9dbf8b8251
10 changed files with 22 additions and 6 deletions

1
Vagrantfile vendored
View File

@ -54,7 +54,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# the path on the host to the actual folder. The second argument is # the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third # the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options. # argument is a set of non-required options.
config.vm.synced_folder "./config", "/vagrant/config"
config.vm.synced_folder "./var/log", "/vagrant/var/log" config.vm.synced_folder "./var/log", "/vagrant/var/log"
# Provider-specific configuration so you can fine-tune various # Provider-specific configuration so you can fine-tune various

View File

@ -31,7 +31,7 @@ class ApplicationConfigForm extends Form
{ {
$this->addElement( $this->addElement(
'text', 'text',
'global_modulePath', 'global_module_path',
array( array(
'label' => t('Module Path'), 'label' => t('Module Path'),
'required' => true, 'required' => true,

View File

@ -41,7 +41,7 @@ class GeneralConfigForm extends ConfigForm
{ {
$sections = array(); $sections = array();
foreach ($this->getValues() as $sectionAndPropertyName => $value) { foreach ($this->getValues() as $sectionAndPropertyName => $value) {
list($section, $property) = explode('_', $sectionAndPropertyName); list($section, $property) = explode('_', $sectionAndPropertyName, 2);
if (! isset($sections[$section])) { if (! isset($sections[$section])) {
$sections[$section] = array(); $sections[$section] = array();
} }

View File

@ -1,5 +1,4 @@
#!/usr/bin/php #!/usr/bin/php
<?php <?php
// {{{ICINGA_LICENSE_HEADER}}} // {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}} // {{{ICINGA_LICENSE_HEADER}}}

View File

@ -372,7 +372,7 @@ abstract class ApplicationBootstrap
$this->moduleManager = new ModuleManager( $this->moduleManager = new ModuleManager(
$this, $this,
$this->configDir . '/enabledModules', $this->configDir . '/enabledModules',
explode(':', $this->config->fromSection('global', 'modulePath', $this->baseDir . '/modules')) explode(':', $this->config->fromSection('global', 'module_path', $this->baseDir . '/modules'))
); );
return $this; return $this;
} }

View File

@ -2,11 +2,19 @@
use Icinga\Application\Icinga; use Icinga\Application\Icinga;
use Icinga\Web\Controller; use Icinga\Web\Controller;
use Icinga\Web\Widget;
class Doc_StyleController extends Controller class Doc_StyleController extends Controller
{ {
public function fontAction() public function fontAction()
{ {
$this->view->tabs = Widget::create('tabs')->add(
'fonts',
array(
'title' => $this->translate('Icons'),
'url' => 'doc/style/font'
)
)->activate('fonts');
$confFile = Icinga::app()->getApplicationDir('fonts/fontanello-ifont/config.json'); $confFile = Icinga::app()->getApplicationDir('fonts/fontanello-ifont/config.json');
$this->view->font = json_decode(file_get_contents($confFile)); $this->view->font = json_decode(file_get_contents($confFile));
} }

View File

@ -0,0 +1,3 @@
<div class="chapter">
<?= $sectionRenderer->render($this, $this->getHelper('Url')); ?>
</div>

View File

@ -0,0 +1,6 @@
<div class="controls">
<h1><?= $title ?></h1>
</div>
<div class="content toc">
<?= $tocRenderer->render($this, $this->getHelper('Url')); ?>
</div>

View File

@ -1,4 +1,5 @@
<div class="controls"> <div class="controls">
<?= $this->tabs ?>
<h1>Icinga Web 2 Icons</h1> <h1>Icinga Web 2 Icons</h1>
</div> </div>

View File

@ -17,7 +17,7 @@ $section->add('Icinga Web 2', array(
$section->add('Module documentations', array( $section->add('Module documentations', array(
'url' => 'doc/module', 'url' => 'doc/module',
)); ));
$section->add($this->translate('Fonts'), array( $section->add($this->translate('Developer - Style'), array(
'url' => 'doc/style/font', 'url' => 'doc/style/font',
'priority' => 200, 'priority' => 200,
)); ));