mirror of https://github.com/Aidaho12/haproxy-wi
Aidaho12
6 years ago
9 changed files with 183 additions and 27 deletions
@ -0,0 +1,35 @@
|
||||
{% for service in service_status %} |
||||
<tr class="{{ loop.cycle('odd', 'even') }}"> |
||||
<td class="padding10 first-collumn"> |
||||
<a href="#{{ service.0 }}" title="Go to {{ service.0 }} status" style="color: #000">{{ service.0 }}</a> |
||||
</td> |
||||
<td class="second-collumn"> |
||||
{% if service.2|int() >= 1 %} |
||||
<span class="serverUp"> UP</span> running {{service.2 }} processes |
||||
{% else %} |
||||
<span class="serverDown"> DOWN</span> running {{service.2 }} processes |
||||
{% endif %} |
||||
</td> |
||||
<td> |
||||
{% if role <= 1 %} |
||||
<a id="{{ service.1 }}" class="start-waf" title="Start WAF service"> |
||||
<img src=/image/pic/start.png alt="start" class="icon"> |
||||
</a> |
||||
<a id="{{ service.1 }}" class="stop-waf" title="Stop WAF service"> |
||||
<img src=/image/pic/stop.png alt="start" class="icon"> |
||||
</a> |
||||
<a id="{{ service.1 }}" class="restart-waf" title="Restart WAF service"> |
||||
<img src=/image/pic/update.png alt="restart" class="icon"> |
||||
</a> |
||||
{% endif %} |
||||
</td> |
||||
<td> |
||||
{% if service.3 %} |
||||
{{ service.3 }} |
||||
{%else %} |
||||
WAF not installed |
||||
{% endif %} |
||||
</td> |
||||
<td></td> |
||||
</tr> |
||||
{% endfor %} |
Before Width: | Height: | Size: 497 KiB After Width: | Height: | Size: 504 KiB |
Loading…
Reference in new issue