Monitoring Logik + Container View Fix
This commit is contained in:
@@ -4,13 +4,30 @@
|
||||
}
|
||||
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||
@foreach (var container in Model.Containers)
|
||||
@foreach (var server in Model.Servers)
|
||||
{
|
||||
<div class="bg-white shadow-md rounded-xl p-5 border border-gray-200 hover:shadow-lg transition duration-200">
|
||||
<h2 class="text-xl font-semibold mb-1">@container.Name</h2>
|
||||
<p class="text-sm text-gray-600 mb-2"><strong>Image:</strong> @container.Image</p>
|
||||
<h2 class="text-xl font-semibold mb-1">@server.Name</h2>
|
||||
</div>
|
||||
|
||||
<div class="bg-white">
|
||||
@if (Model.Containers.Count > 0)
|
||||
{
|
||||
<table>
|
||||
@foreach (var container in Model.Containers)
|
||||
{
|
||||
<tr>test</tr>
|
||||
if (container.HostServer.Equals(server.Name))
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
</table>
|
||||
} else
|
||||
{
|
||||
<p> keine Container gefunden </p>
|
||||
}
|
||||
|
||||
<p class="text-sm text-gray-600"><strong>Status:</strong> @(container.IsRunning ? "online" : "offline")</p>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user