You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
haproxy-wi/app/templates/waf.html

54 lines
1.1 KiB

{% extends "base.html" %}
{% block content %}
<table class="overview">
<tr class="overviewHead">
<td class="padding10 first-collumn">
Server
</td>
<td>
<!-- WAF status -->
</td>
<td class="padding10">
Action
</td>
<td class="padding10">
WAF mode
</td class="padding10">
<td>
Metrics
</td>
<td>
<a onclick="showOverviewWaf()" title="Refresh" style="float: right; margin-right: 25px;"><img src="/inc/images/update.png" alt="Refresh" class="icon"></a>
</td>
</tr>
<tbody id="ajaxwafstatus"></tbody>
</table>
<div id="ajax"></div>
<style>
iframe {
border: none;
padding: 10px;
}
</style>
<div id="metrics_iframe"></div>
<script>
showOverviewWaf()
function callIframe(url, callback) {
$('#metrics_iframe').html('<iframe id="metrics" style="width:100%;height:100%;" />');
$('iframe#metrics').attr('src', url);
$('iframe#metrics').load(function() {
callback(this);
});
}
function loadMetrics() {
callIframe('templates/metrics_waf_out.html', function(){
$.get( "options.py?waf_metrics=1&token="+$('#token').val(), function( data ) {
$( ".result" ).html( data );
});
});
}
loadMetrics()
</script>
{% endblock %}