mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
Controller: Remove obsolete if condition
Ipl-web manages this now
This commit is contained in:
parent
62b9c24e45
commit
0ea3b63458
3 changed files with 2 additions and 17 deletions
|
|
@ -37,8 +37,6 @@ use ipl\Html\ValidHtml;
|
|||
use ipl\Orm\Query;
|
||||
use ipl\Orm\UnionQuery;
|
||||
use ipl\Stdlib\Filter;
|
||||
use ipl\Web\Common\BaseItemList;
|
||||
use ipl\Web\Common\BaseItemTable;
|
||||
use ipl\Web\Compat\CompatController;
|
||||
use ipl\Web\Control\LimitControl;
|
||||
use ipl\Web\Control\PaginationControl;
|
||||
|
|
@ -486,9 +484,7 @@ class Controller extends CompatController
|
|||
|
||||
protected function addContent(ValidHtml $content)
|
||||
{
|
||||
if ($content instanceof BaseItemList || $content instanceof BaseItemTable) {
|
||||
$this->content->getAttributes()->add('class', 'full-width');
|
||||
} elseif ($content instanceof StateItemTable) {
|
||||
if ($content instanceof StateItemTable) {
|
||||
$this->content->getAttributes()->add('class', 'full-height');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ use ipl\Web\Control\SortControl;
|
|||
use ipl\Web\Widget\EmptyStateBar;
|
||||
use ipl\Web\Widget\Icon;
|
||||
|
||||
/** @todo Figure out what this might (should) have in common with the new BaseItemTable implementation */
|
||||
/** @todo Figure out what this might (should) have in common with the new ItemTable implementation */
|
||||
abstract class StateItemTable extends BaseHtmlElement
|
||||
{
|
||||
protected $baseAttributes = [
|
||||
|
|
|
|||
|
|
@ -4,17 +4,6 @@
|
|||
@iplWebAssets: "../lib/icinga/icinga-php-library";
|
||||
};
|
||||
|
||||
& > .content.full-width {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
|
||||
.list-item,
|
||||
.table-row {
|
||||
padding-left: 1em;
|
||||
padding-right: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
& > .content.full-height {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue