internal/web/templates/uptime.html
{{ define "uptime" }}
<!--Auto refresh (seconds)-->
<meta http-equiv="refresh" content="{{ .Config.WebRefresh }}">
</head>
<body>
<div class="container">
<br>
<div class="row">
<table class="table table-striped">
<thead>
<th>Panel</th>
<th>Host</th>
<th>Address</th>
<th>Port</th>
<th>Date</th>
<th>Time</th>
<th>Status</th>
<th>Notify</th>
</thead>
{{ range .UptimeMon }}
<tr>
<td>
<a href="/uptime/?filter=yes&panel={{ .Panel }}">{{ .Panel }}</a>
</td>
<td>
<a href="/uptime/?filter=yes&panel={{ .Panel }}&host={{ .Host }}">{{ .Host }}</a>
</td>
<td>
<a href="/uptime/?filter=yes&addr={{ .Addr }}">{{ .Addr }}</a>
</td>
<td>
<a href="/uptime/?filter=yes&port={{ .Port }}">{{ .Port }}</a>
</td>
<td>
<a style="color: #{{ .Color }};" href="/uptime/?filter=yes&date={{ .Date }}">{{ .Date }}</a>
</td>
<td>{{ .Time }}</td>
<td>
{{ if .State }}
<a href="/uptime/?filter=yes&state=on"><i class="bi bi-circle-fill my-col-on"></i></a>
{{ else }}
<a href="/uptime/?filter=yes&state=off"><i class="bi bi-circle-fill my-col-off"></i></a>
{{ end }}
</td>
<td>
<a href="/uptime/?filter=yes¬ify={{ .Notify }}">{{ .Notify }}</a>
</td>
</tr>
{{ end }}
</table>
</div>
</div>
{{ template "footer" }}
{{ end }}