Skip to content

Commit

Permalink
Utilize widgets moved to ipl-web
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab authored and nilmerg committed Sep 8, 2023
1 parent cacc770 commit 705a470
Show file tree
Hide file tree
Showing 77 changed files with 298 additions and 1,952 deletions.
2 changes: 1 addition & 1 deletion application/controllers/CommentsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
use Icinga\Module\Icingadb\Web\Control\SearchBar\ObjectSuggestions;
use Icinga\Module\Icingadb\Web\Controller;
use Icinga\Module\Icingadb\Widget\ItemList\CommentList;
use Icinga\Module\Icingadb\Widget\ShowMore;
use Icinga\Module\Icingadb\Web\Control\ViewModeSwitcher;
use Icinga\Module\Icingadb\Widget\ShowMore;
use ipl\Web\Control\LimitControl;
use ipl\Web\Control\SortControl;
use ipl\Web\Filter\QueryString;
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/DowntimesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
use Icinga\Module\Icingadb\Web\Control\SearchBar\ObjectSuggestions;
use Icinga\Module\Icingadb\Web\Controller;
use Icinga\Module\Icingadb\Widget\ItemList\DowntimeList;
use Icinga\Module\Icingadb\Widget\ShowMore;
use Icinga\Module\Icingadb\Web\Control\ViewModeSwitcher;
use Icinga\Module\Icingadb\Widget\ShowMore;
use ipl\Web\Control\LimitControl;
use ipl\Web\Control\SortControl;
use ipl\Web\Filter\QueryString;
Expand Down
3 changes: 1 addition & 2 deletions application/controllers/HostgroupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
use Icinga\Module\Icingadb\Web\Control\SearchBar\ObjectSuggestions;
use Icinga\Module\Icingadb\Web\Controller;
use Icinga\Module\Icingadb\Widget\ItemTable\HostgroupTable;
use Icinga\Module\Icingadb\Widget\ShowMore;
use Icinga\Module\Icingadb\Web\Control\ViewModeSwitcher;
use ipl\Orm\Query;
use Icinga\Module\Icingadb\Widget\ShowMore;
use ipl\Web\Control\LimitControl;
use ipl\Web\Control\SortControl;
use ipl\Web\Url;
Expand Down
6 changes: 4 additions & 2 deletions application/controllers/HostsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
use Icinga\Module\Icingadb\Widget\ItemList\HostList;
use Icinga\Module\Icingadb\Widget\HostStatusBar;
use Icinga\Module\Icingadb\Widget\ItemTable\HostItemTable;
use Icinga\Module\Icingadb\Widget\ShowMore;
use Icinga\Module\Icingadb\Web\Control\ViewModeSwitcher;
use Icinga\Module\Icingadb\Widget\ShowMore;
use ipl\Orm\Query;
use ipl\Stdlib\Filter;
use ipl\Web\Control\LimitControl;
Expand Down Expand Up @@ -121,7 +121,9 @@ public function indexAction()
))
);
} else {
$this->addFooter((new HostStatusBar($summary->first()))->setBaseFilter($filter));
/** @var HoststateSummary $hostsSummary */
$hostsSummary = $summary->first();
$this->addFooter((new HostStatusBar($hostsSummary))->setBaseFilter($filter));
}

if (! $searchBar->hasBeenSubmitted() && $searchBar->hasBeenSent()) {
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/ServicegroupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
use Icinga\Module\Icingadb\Web\Control\SearchBar\ObjectSuggestions;
use Icinga\Module\Icingadb\Web\Controller;
use Icinga\Module\Icingadb\Widget\ItemTable\ServicegroupTable;
use Icinga\Module\Icingadb\Widget\ShowMore;
use Icinga\Module\Icingadb\Web\Control\ViewModeSwitcher;
use Icinga\Module\Icingadb\Widget\ShowMore;
use ipl\Web\Control\LimitControl;
use ipl\Web\Control\SortControl;
use ipl\Web\Url;
Expand Down
6 changes: 4 additions & 2 deletions application/controllers/ServicesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
use Icinga\Module\Icingadb\Widget\ItemList\ServiceList;
use Icinga\Module\Icingadb\Widget\ItemTable\ServiceItemTable;
use Icinga\Module\Icingadb\Widget\ServiceStatusBar;
use Icinga\Module\Icingadb\Widget\ShowMore;
use Icinga\Module\Icingadb\Web\Control\ViewModeSwitcher;
use Icinga\Module\Icingadb\Widget\ShowMore;
use Icinga\Util\Environment;
use ipl\Html\HtmlString;
use ipl\Orm\Query;
Expand Down Expand Up @@ -132,7 +132,9 @@ public function indexAction()
))
);
} else {
$this->addFooter((new ServiceStatusBar($summary->first()))->setBaseFilter($filter));
/** @var ServicestateSummary $servicesSummary */
$servicesSummary = $summary->first();
$this->addFooter((new ServiceStatusBar($servicesSummary))->setBaseFilter($filter));
}

if (! $searchBar->hasBeenSubmitted() && $searchBar->hasBeenSent()) {
Expand Down
100 changes: 0 additions & 100 deletions library/Icingadb/Common/BaseItemList.php

This file was deleted.

88 changes: 0 additions & 88 deletions library/Icingadb/Common/BaseItemTable.php

This file was deleted.

Loading

0 comments on commit 705a470

Please sign in to comment.