2024-02-12 13:20:38 +00:00
{{define "settings"}}
2024-02-15 17:43:35 +00:00
{{ $ description := "Healthchecks represent periodic checks of some HTTP or TCP service, to see if it's responding correctly to deterime if it's healthy or not." }}
2024-02-15 22:47:56 +00:00
{{ if eq .HealthchecksLength 0 }}
2024-02-15 17:43:35 +00:00
<section>
<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">
There are no healthchecks yet.
</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-15 22:47:56 +00:00
<a href="/settings/healthchecks/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 Healthcheck
<svg class="feather ml-1 h-5 w-5 overflow-visible"><use href="/static/icons/feather-sprite.svg #plus " /></svg>
2024-02-15 17:43:35 +00:00
</a>
</div>
</div>
</section>
2024-02-15 22:47:56 +00:00
{{ else }}
2024-02-15 17:43:35 +00:00
<div class="relative overflow-x-auto shadow-md sm:rounded-lg">
<table class="w-full text-sm text-left rtl:text-right text-gray-500">
<caption class="p-5 text-lg font-semibold text-left rtl:text-right text-gray-900 bg-white">
List of Healthchecks
2024-02-15 22:47:56 +00:00
<div class="mt-1 flex">
<p class="mt-1 text-sm font-normal text-gray-500">
2024-02-18 21:37:17 +00:00
{{ $ description }}
2024-02-15 22:47:56 +00:00
</p>
<a href="/settings/healthchecks/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">
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>
<th scope="col" class="px-6 py-3">
Name
</th>
<th scope="col" class="px-6 py-3">
Type
</th>
<th scope="col" class="px-6 py-3">
Status
</th>
<th scope="col" class="px-6 py-3">
2024-02-15 22:47:56 +00:00
Schedule
2024-02-15 17:43:35 +00:00
</th>
<th scope="col" class="px-6 py-3">
Action
</th>
</tr>
</thead>
2024-02-15 22:47:56 +00:00
{{range .Healthchecks}}
2024-02-15 17:43:35 +00:00
<tbody>
<tr class="odd:bg-white even:bg-gray-50">
<th scope="row" class="px-6 py-4 font-medium text-gray-900 whitespace-nowrap">
2024-02-15 22:47:56 +00:00
{{.Name}}
2024-02-15 17:43:35 +00:00
</th>
<td class="px-6 py-4">
2024-02-15 22:47:56 +00:00
HTTP
2024-02-15 17:43:35 +00:00
</td>
<td class="px-6 py-4">
2024-02-15 22:47:56 +00:00
OK
2024-02-15 17:43:35 +00:00
</td>
<td class="px-6 py-4">
2024-02-15 22:47:56 +00:00
{{.Schedule}}
2024-02-15 17:43:35 +00:00
</td>
<td class="px-6 py-4">
2024-02-16 12:41:18 +00:00
<a href="/settings/healthchecks/{{.Slug}}" class="font-medium text-blue-600 hover:underline">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>
</div>
2024-02-12 13:20:38 +00:00
{{end}}
2024-02-15 22:47:56 +00:00
{{end}}