2024-02-12 13:20:38 +00:00
|
|
|
{{define "settings"}}
|
|
|
|
|
2024-02-24 21:07:49 +00:00
|
|
|
{{ $description := "Monitors are constantly checking weather a service is online and working correctly." }}
|
2024-02-15 17:43:35 +00:00
|
|
|
|
2024-02-24 11:57:53 +00:00
|
|
|
{{ if eq .MonitorsLength 0 }}
|
2024-02-23 11:18:02 +00:00
|
|
|
<div class="py-8 px-4 mx-auto max-w-screen-xl text-center lg:py-16">
|
|
|
|
<h1 class="mb-4 text-2xl font-extrabold tracking-tight leading-none text-gray-900 md:text-3xl lg:text-4xl">
|
2024-02-24 11:57:53 +00:00
|
|
|
There are no monitors yet.
|
2024-02-23 11:18:02 +00:00
|
|
|
</h1>
|
|
|
|
<p class="mb-8 text-l font-normal text-gray-500 lg:text-l sm:px-8 lg:px-40">
|
|
|
|
{{ $description }}
|
|
|
|
</p>
|
|
|
|
<div class="flex flex-col space-y-4 sm:flex-row sm:justify-center sm:space-y-0">
|
2024-02-24 11:57:53 +00:00
|
|
|
<a href="/settings/monitors/create" class="inline-flex justify-center items-center py-3 px-5 text-base font-medium text-center text-white rounded-lg bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300">
|
|
|
|
Create First Monitor
|
2024-02-23 11:18:02 +00:00
|
|
|
<svg class="feather ml-1 h-5 w-5 overflow-visible"><use href="/static/icons/feather-sprite.svg#plus" /></svg>
|
|
|
|
</a>
|
2024-02-15 17:43:35 +00:00
|
|
|
</div>
|
2024-02-23 11:18:02 +00:00
|
|
|
</div>
|
2024-02-15 22:47:56 +00:00
|
|
|
{{ else }}
|
2024-02-23 11:18:02 +00:00
|
|
|
<section>
|
2024-02-27 22:47:20 +00:00
|
|
|
<table>
|
|
|
|
<caption>
|
2024-02-24 11:57:53 +00:00
|
|
|
List of Monitors
|
2024-02-21 09:41:20 +00:00
|
|
|
<div class="mt-1 gap-4 flex justify-between">
|
2024-02-27 22:47:20 +00:00
|
|
|
<p>
|
2024-02-18 21:37:17 +00:00
|
|
|
{{ $description }}
|
2024-02-15 22:47:56 +00:00
|
|
|
</p>
|
2024-02-24 11:57:53 +00:00
|
|
|
<a href="/settings/monitors/create" class="inline-flex justify-center items-center py-1 px-2 text-sm font-medium text-center text-white rounded-lg bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300">
|
2024-02-15 22:47:56 +00:00
|
|
|
Create New
|
|
|
|
<svg class="feather h-5 w-5 overflow-visible"><use href="/static/icons/feather-sprite.svg#plus" /></svg>
|
|
|
|
</a>
|
|
|
|
</div>
|
2024-02-15 17:43:35 +00:00
|
|
|
</caption>
|
|
|
|
<thead class="text-xs text-gray-700 uppercase bg-gray-50">
|
|
|
|
<tr>
|
2024-02-24 21:07:49 +00:00
|
|
|
<th scope="col">
|
2024-02-15 17:43:35 +00:00
|
|
|
Name
|
|
|
|
</th>
|
2024-02-24 21:07:49 +00:00
|
|
|
<th scope="col">
|
2024-02-19 10:43:43 +00:00
|
|
|
Worker Groups
|
|
|
|
</th>
|
2024-02-24 21:07:49 +00:00
|
|
|
<th scope="col">
|
2024-02-15 17:43:35 +00:00
|
|
|
Status
|
|
|
|
</th>
|
2024-02-24 21:07:49 +00:00
|
|
|
<th scope="col">
|
2024-02-15 22:47:56 +00:00
|
|
|
Schedule
|
2024-02-15 17:43:35 +00:00
|
|
|
</th>
|
2024-02-24 21:07:49 +00:00
|
|
|
<th scope="col">
|
2024-02-15 17:43:35 +00:00
|
|
|
Action
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2024-02-24 11:57:53 +00:00
|
|
|
{{range .Monitors}}
|
2024-02-15 17:43:35 +00:00
|
|
|
<tbody>
|
2024-02-24 21:07:49 +00:00
|
|
|
<tr>
|
|
|
|
<th scope="row">
|
2024-02-15 22:47:56 +00:00
|
|
|
{{.Name}}
|
2024-02-15 17:43:35 +00:00
|
|
|
</th>
|
2024-02-24 21:07:49 +00:00
|
|
|
<td>
|
2024-02-19 10:43:43 +00:00
|
|
|
{{range .WorkerGroups}}
|
2024-02-23 13:56:00 +00:00
|
|
|
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">
|
2024-02-27 11:04:05 +00:00
|
|
|
{{ . }}
|
2024-02-23 13:56:00 +00:00
|
|
|
</span>
|
2024-02-19 10:43:43 +00:00
|
|
|
{{end}}
|
2024-02-15 17:43:35 +00:00
|
|
|
</td>
|
2024-02-24 21:07:49 +00:00
|
|
|
<td>
|
2024-02-28 11:06:24 +00:00
|
|
|
{{ if eq .Status "ACTIVE" }}
|
2024-02-23 13:56:00 +00:00
|
|
|
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
|
2024-02-23 21:08:17 +00:00
|
|
|
ACTIVE
|
2024-02-23 13:56:00 +00:00
|
|
|
</span>
|
2024-02-28 11:06:24 +00:00
|
|
|
{{ else if eq .Status "PAUSED" }}
|
2024-02-23 21:08:17 +00:00
|
|
|
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">
|
|
|
|
PAUSED
|
2024-02-23 13:56:00 +00:00
|
|
|
</span>
|
2024-02-28 11:06:24 +00:00
|
|
|
{{ else }}
|
|
|
|
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-gray-100 text-gray-800">
|
|
|
|
UNKNOWN
|
|
|
|
</span>
|
|
|
|
{{ end }}
|
2024-02-15 17:43:35 +00:00
|
|
|
</td>
|
2024-02-24 21:07:49 +00:00
|
|
|
<td>
|
2024-02-15 22:47:56 +00:00
|
|
|
{{.Schedule}}
|
2024-02-15 17:43:35 +00:00
|
|
|
</td>
|
2024-02-24 21:07:49 +00:00
|
|
|
<td>
|
2024-02-24 11:57:53 +00:00
|
|
|
<a href="/settings/monitors/{{.Slug}}" class="link">Details</a>
|
2024-02-15 17:43:35 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
2024-02-15 22:47:56 +00:00
|
|
|
{{end}}
|
2024-02-15 17:43:35 +00:00
|
|
|
</table>
|
2024-02-23 11:18:02 +00:00
|
|
|
</section>
|
2024-02-12 13:20:38 +00:00
|
|
|
{{end}}
|
2024-02-15 22:47:56 +00:00
|
|
|
{{end}}
|