Add link to service in html page
This commit is contained in:
parent
3bbc55c56e
commit
3bb3c91907
3 changed files with 3 additions and 1 deletions
|
@ -19,6 +19,7 @@ func (s ServiceConfig) URL() *url.URL {
|
|||
|
||||
type ServiceStatus struct {
|
||||
Name string
|
||||
Url string
|
||||
Ok bool
|
||||
Status string
|
||||
}
|
||||
|
|
|
@ -27,6 +27,7 @@ func TestService(service ServiceConfig) ServiceStatus {
|
|||
|
||||
return ServiceStatus{
|
||||
Name: service.Description,
|
||||
Url: service.Url,
|
||||
Ok: serviceResult,
|
||||
Status: status,
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue