mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-22 09:27:39 +02:00
Make use of the new controller by default
This commit is contained in:
parent
2c795a5dbc
commit
c71f3cd75d
@ -12,6 +12,7 @@ use Icinga\Authentication\User\ExternalBackend;
|
||||
use Icinga\Common\Database;
|
||||
use Icinga\Exception\Http\HttpBadRequestException;
|
||||
use Icinga\User;
|
||||
use Icinga\Web\Dashboard\Dashboard;
|
||||
use Icinga\Web\Form;
|
||||
use Icinga\Web\RememberMe;
|
||||
use Icinga\Web\Url;
|
||||
@ -28,7 +29,7 @@ class LoginForm extends Form
|
||||
/**
|
||||
* Redirect URL
|
||||
*/
|
||||
const REDIRECT_URL = 'dashboard';
|
||||
const REDIRECT_URL = Dashboard::BASE_ROUTE;
|
||||
|
||||
public static $defaultElementDecorators = [
|
||||
['ViewHelper', ['separator' => '']],
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use Icinga\Web\Dashboard\Dashboard;
|
||||
use Icinga\Web\Url;
|
||||
use Icinga\Web\Notification;
|
||||
use Icinga\Authentication\Auth;
|
||||
@ -36,7 +37,7 @@ if ($this->layout()->inlineLayout) {
|
||||
<div id="header-logo-container">
|
||||
<?= $this->qlink(
|
||||
'',
|
||||
Auth::getInstance()->isAuthenticated() ? 'dashboard' : '',
|
||||
Auth::getInstance()->isAuthenticated() ? Dashboard::BASE_ROUTE : '',
|
||||
null,
|
||||
array(
|
||||
'aria-hidden' => 'true',
|
||||
|
@ -6,7 +6,7 @@ use Icinga\Web\Widget\SearchDashboard;
|
||||
$searchDashboard = new SearchDashboard();
|
||||
$searchDashboard->setUser($this->Auth()->getUser());
|
||||
|
||||
if ($searchDashboard->search('dummy')->getPane('search')->hasDashlets()): ?>
|
||||
if ($searchDashboard->search('dummy')->getActiveHome()->getPane('search')->hasDashlets()): ?>
|
||||
<form action="<?= $this->href('search') ?>" method="get" role="search" class="search-control">
|
||||
<input type="text" name="q" id="search" class="search search-input" required
|
||||
placeholder="<?= $this->translate('Search') ?> …"
|
||||
|
@ -6,6 +6,7 @@ namespace Icinga\Web;
|
||||
use Icinga\Application\Logger;
|
||||
use Icinga\Authentication\Auth;
|
||||
use Icinga\Web\Navigation\Navigation;
|
||||
use Icinga\Web\Dashboard\Dashboard;
|
||||
|
||||
/**
|
||||
* Main menu for Icinga Web 2
|
||||
@ -28,7 +29,7 @@ class Menu extends Navigation
|
||||
{
|
||||
$this->addItem('dashboard', [
|
||||
'label' => t('Dashboard'),
|
||||
'url' => 'dashboard',
|
||||
'url' => Dashboard::BASE_ROUTE,
|
||||
'icon' => 'dashboard',
|
||||
'priority' => 10
|
||||
]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user