Add link to service in html page

This commit is contained in:
Locria Cyber 2023-10-01 08:46:09 +00:00
parent 3bbc55c56e
commit 3bb3c91907
Signed by: iacore
GPG key ID: F8C16E5157A63006
3 changed files with 3 additions and 1 deletions

View file

@ -19,6 +19,7 @@ func (s ServiceConfig) URL() *url.URL {
type ServiceStatus struct {
Name string
Url string
Ok bool
Status string
}

View file

@ -27,6 +27,7 @@ func TestService(service ServiceConfig) ServiceStatus {
return ServiceStatus{
Name: service.Description,
Url: service.Url,
Ok: serviceResult,
Status: status,
}

View file

@ -17,7 +17,7 @@
<li>
<div class="service {{#Ok}}serviceUp{{/Ok}}{{^Ok}}serviceDown{{/Ok}}">
<div>
<span class="serviceName">{{Name}}</span>
<a class="serviceName" href="{{Url}}">{{Name}}</a>
<span>- {{#Ok}}UP{{/Ok}}{{^Ok}}DOWN{{/Ok}}</span>
</div>
<span class="serviceStatusText">{{Status}}</span>