Skip to content

Commit

Permalink
Merge pull request #69 from Icinga/ui-design-headers
Browse files Browse the repository at this point in the history
UI design headers
  • Loading branch information
lippserd authored Sep 10, 2024
2 parents b9955be + ea7233b commit 2c18214
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/controllers/DaemonsetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Icinga\Module\Kubernetes\Model\DaemonSet;
use Icinga\Module\Kubernetes\Web\Controller;
use Icinga\Module\Kubernetes\Web\DaemonSetDetail;
use Icinga\Module\Kubernetes\Web\DaemonSetList;
use ipl\Stdlib\Filter;
use Ramsey\Uuid\Uuid;

Expand All @@ -29,6 +30,8 @@ public function indexAction(): void
$this->httpNotFound($this->translate('Daemon Set not found'));
}

$this->addControl(new DaemonSetList([$daemonSet]));

$this->addContent(new DaemonSetDetail($daemonSet));
}
}
3 changes: 3 additions & 0 deletions application/controllers/DeploymentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Icinga\Module\Kubernetes\Model\Deployment;
use Icinga\Module\Kubernetes\Web\Controller;
use Icinga\Module\Kubernetes\Web\DeploymentDetail;
use Icinga\Module\Kubernetes\Web\DeploymentList;
use ipl\Stdlib\Filter;
use Ramsey\Uuid\Uuid;

Expand All @@ -29,6 +30,8 @@ public function indexAction(): void
$this->httpNotFound($this->translate('Deployment not found'));
}

$this->addControl(new DeploymentList([$deployment]));

$this->addContent(new DeploymentDetail($deployment));
}
}
3 changes: 3 additions & 0 deletions application/controllers/JobController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Icinga\Module\Kubernetes\Common\Database;
use Icinga\Module\Kubernetes\Model\Job;
use Icinga\Module\Kubernetes\Web\JobDetail;
use Icinga\Module\Kubernetes\Web\JobList;
use ipl\Stdlib\Filter;
use ipl\Web\Compat\CompatController;
use Ramsey\Uuid\Uuid;
Expand All @@ -29,6 +30,8 @@ public function indexAction(): void
$this->httpNotFound($this->translate('Job not found'));
}

$this->addControl(new JobList([$job]));

$this->addContent(new JobDetail($job));
}
}
3 changes: 3 additions & 0 deletions application/controllers/NodeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Icinga\Module\Kubernetes\Common\Database;
use Icinga\Module\Kubernetes\Model\Node;
use Icinga\Module\Kubernetes\Web\NodeDetail;
use Icinga\Module\Kubernetes\Web\NodeList;
use ipl\Stdlib\Filter;
use ipl\Web\Compat\CompatController;
use Ramsey\Uuid\Uuid;
Expand All @@ -29,6 +30,8 @@ public function indexAction(): void
$this->httpNotFound($this->translate('Node not found'));
}

$this->addControl(new NodeList([$node]));

$this->addContent(new NodeDetail($node));
}
}
3 changes: 3 additions & 0 deletions application/controllers/PodController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Icinga\Module\Kubernetes\Common\Database;
use Icinga\Module\Kubernetes\Model\Pod;
use Icinga\Module\Kubernetes\Web\PodDetail;
use Icinga\Module\Kubernetes\Web\PodList;
use ipl\Stdlib\Filter;
use ipl\Web\Compat\CompatController;
use Ramsey\Uuid\Uuid;
Expand All @@ -29,6 +30,8 @@ public function indexAction(): void
$this->httpNotFound($this->translate('Pod not found'));
}

$this->addControl(new PodList([$pod]));

$this->addContent(new PodDetail($pod));
}
}
3 changes: 3 additions & 0 deletions application/controllers/ReplicasetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Icinga\Module\Kubernetes\Model\ReplicaSet;
use Icinga\Module\Kubernetes\Web\Controller;
use Icinga\Module\Kubernetes\Web\ReplicaSetDetail;
use Icinga\Module\Kubernetes\Web\ReplicaSetList;
use ipl\Stdlib\Filter;
use Ramsey\Uuid\Uuid;

Expand All @@ -29,6 +30,8 @@ public function indexAction(): void
$this->httpNotFound($this->translate('Replica Set not found'));
}

$this->addControl(new ReplicaSetList([$replicaSet]));

$this->addContent(new ReplicaSetDetail($replicaSet));
}
}
3 changes: 3 additions & 0 deletions application/controllers/StatefulsetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Icinga\Module\Kubernetes\Model\StatefulSet;
use Icinga\Module\Kubernetes\Web\Controller;
use Icinga\Module\Kubernetes\Web\StatefulSetDetail;
use Icinga\Module\Kubernetes\Web\StatefulSetList;
use ipl\Stdlib\Filter;
use Ramsey\Uuid\Uuid;

Expand All @@ -29,6 +30,8 @@ public function indexAction(): void
$this->httpNotFound($this->translate('Stateful Set not found'));
}

$this->addControl(new StatefulSetList([$statefulSet]));

$this->addContent(new StatefulSetDetail($statefulSet));
}
}
12 changes: 12 additions & 0 deletions public/css/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ pre {
border-radius: initial;
}

.controls {
// Copied from Icinga DB Web
-moz-box-shadow: 0 0 0 1px var(--gray-lighter, #4b4b4b);
-webkit-box-shadow: 0 0 0 1px var(--gray-lighter, #4b4b4b);
box-shadow: 0 0 0 1px var(--gray-lighter, #4b4b4b);

footer {
height: 1em;
}
}


.horizontal-key-value,
.vertical-key-value {
> .value {
Expand Down

0 comments on commit 2c18214

Please sign in to comment.