mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
config/devtools: playground for developer tools
This is nothing but a prototype right now but could become pretty useful. We want to allow our users to control most of our developer tools without deep knowledge about Icinga Web internals. This first prototype allows allows one to toggle the JS UI debug window.
This commit is contained in:
parent
13ef06c700
commit
3576263559
@ -403,6 +403,14 @@ class ConfigController extends BaseConfigController
|
||||
$this->render('authentication/remove');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show developer tools
|
||||
*/
|
||||
public function devtoolsAction()
|
||||
{
|
||||
$this->view->tabs = null;
|
||||
}
|
||||
|
||||
public function resourceAction($showOnly = false)
|
||||
{
|
||||
$this->view->tabs->activate('resources');
|
||||
|
6
application/views/scripts/config/devtools.phtml
Normal file
6
application/views/scripts/config/devtools.phtml
Normal file
@ -0,0 +1,6 @@
|
||||
<div class="controls">
|
||||
<?= $this->tabs ?>
|
||||
</div>
|
||||
<table class="avp">
|
||||
<tr><th><?= $this->translate('UI Debug') ?></th><td><a href="javascript:void(0);" onclick="icinga.ui.toggleDebug();"><?= $this->translate('toggle') ?></td></tr>
|
||||
</table>
|
Loading…
x
Reference in New Issue
Block a user