Revert "Beautify"

This commit is contained in:
adriaaah 2020-01-26 23:49:29 +01:00 committed by GitHub
parent 35ff7b0e94
commit 68c39b9ad8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 144 additions and 146 deletions

View file

@ -28,18 +28,18 @@ $def with (output, now)
<br> <br>
<table width=100%> <table width=100%>
<thead class="server-link"> <thead class="server-link">
<tr> <tr><th colspan="2">
<th colspan="2">
<a href="$output[server]['url']" target="_blank">$output[server]['name']</a> <a href="$output[server]['url']" target="_blank">$output[server]['name']</a>
</th> </th></tr>
</tr>
</thead> </thead>
$for check in output[server]['result'].keys(): $for check in output[server]['result'].keys():
$ isError = output[server]['result'].get(check) $ isError = output[server]['result'].get(check)
$if isError != 0: $if isError != 0:
<tr> <tr>
<td><a href="$output[server]['url']/$check" target="_blank">$check</a></td> <td><a href="$output[server]['url']/$check"
<td><a href="$output[server]['url']/$check" target="_blank"><img src="static/img/error.png"></a></td> target="_blank">$check</a></td>
<td><a href="$output[server]['url']/$check"
target="_blank"><img src="static/img/error.png"></a></td>
</tr> </tr>
$else: $else:
<tr> <tr>
@ -58,18 +58,18 @@ $def with (output, now)
<br> <br>
<table width=100%> <table width=100%>
<thead class="server-link"> <thead class="server-link">
<tr> <tr><th colspan="2">
<th colspan="2">
<a href="$output[server]['url']" target="_blank">$output[server]['name']</a> <a href="$output[server]['url']" target="_blank">$output[server]['name']</a>
</th> </th></tr>
</tr>
</thead> </thead>
$for check in output[server]['result'].keys(): $for check in output[server]['result'].keys():
$ isError = output[server]['result'].get(check) $ isError = output[server]['result'].get(check)
$if isError != 0: $if isError != 0:
<tr> <tr>
<td><a href="$output[server]['url']/$check" target="_blank">$check</a></td> <td><a href="$output[server]['url']/$check"
<td><a href="$output[server]['url']/$check" target="_blank"><img src="static/img/error.png"></a></td> target="_blank">$check</a></td>
<td><a href="$output[server]['url']/$check"
target="_blank"><img src="static/img/error.png"></a></td>
</tr> </tr>
$else: $else:
<tr> <tr>
@ -84,9 +84,7 @@ $def with (output, now)
<div class="canvas-container"> <div class="canvas-container">
<div class="canvas-graph"> <div class="canvas-graph">
<div class="canvas-header"> <div class="canvas-header"><h2 style="margin: 0">Hosts status</h2></div>
<h2 style="margin: 0">Hosts status</h2>
</div>
<canvas id="canvas" width="400" height="400"></canvas> <canvas id="canvas" width="400" height="400"></canvas>
</div> </div>
</div> </div>