Skip to content

Commit

Permalink
The services/requests status buttons now link to the URL used to chec…
Browse files Browse the repository at this point in the history
…k them.
  • Loading branch information
bensheldon committed Jun 29, 2012
1 parent ceeb481 commit 8c47a3e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions views/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,25 @@ div.row-fluid
td
- if (endpoint.servicesPing.statusCode != 200)
- var tooltip = 'Server responded with "' + endpoint.servicesPing.statusCode + '" after ' + endpoint.servicesPing.responseTime + "ms"
li(class="btn btn-mini btn-danger", rel="tooltip", title=tooltip) Error
a(class="btn btn-mini btn-danger", href=endpoint.servicesPing.url, rel="tooltip", title=tooltip) Error
- else
- if (endpoint.servicesPing.responseTime > 999)
- var tooltip = "Slow server response: " + endpoint.servicesPing.responseTime + "ms"
li(class="btn btn-mini btn-warning", rel="tooltip", title=tooltip) Slow
a(class="btn btn-mini btn-warning", href=endpoint.servicesPing.url, rel="tooltip", title=tooltip) Slow
- else
- var tooltip = "Server response: " + endpoint.servicesPing.responseTime + "ms"
li(class="btn btn-mini btn-success", rel="tooltip", title=tooltip) Okay
a(class="btn btn-mini btn-success", href=endpoint.servicesPing.url, rel="tooltip", title=tooltip) Okay
td
- if (endpoint.requestsPing.statusCode != 200)
- var tooltip = 'Server responded with "' + endpoint.requestsPing.statusCode + '" after ' + endpoint.requestsPing.responseTime + "ms"
li(class="btn btn-mini btn-danger", rel="tooltip", title=tooltip) Error
a(class="btn btn-mini btn-danger", href=endpoint.requestsPing.url, rel="tooltip", title=tooltip) Error
- else
- if (endpoint.requestsPing.responseTime > 999)
- var tooltip = "Slow server response: " + endpoint.requestsPing.responseTime + "ms"
li(class="btn btn-mini btn-warning", rel="tooltip", title=tooltip) Slow
a(class="btn btn-mini btn-warning", href=endpoint.requestsPing.url, rel="tooltip", title=tooltip) Slow
- else
- var tooltip = "Server response: " + endpoint.requestsPing.responseTime + "ms"
li(class="btn btn-mini btn-success", rel="tooltip", title=tooltip) Okay
a(class="btn btn-mini btn-success", href=endpoint.requestsPing.url, rel="tooltip", title=tooltip) Okay
td
a(data-toggle="modal", data-city=endpoint.endpoint, href="#servicesModal") #{endpoint.servicesPing.servicesCount} types
td
Expand Down

0 comments on commit 8c47a3e

Please sign in to comment.