mirror of https://github.com/Aidaho12/haproxy-wi
parent
3096b28dec
commit
718758282f
|
@ -22,30 +22,17 @@
|
||||||
} );
|
} );
|
||||||
</script>
|
</script>
|
||||||
<table class="overview hover order-column display compact" id="alerts_table">
|
<table class="overview hover order-column display compact" id="alerts_table">
|
||||||
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="overviewHead">
|
<tr class="overviewHead">
|
||||||
<th class="padding10" style="width: 10%; padding-left: 10px;">
|
<th class="padding10" style="width: 10%; padding-left: 10px;">Level</th>
|
||||||
Level
|
<th>Host</th>
|
||||||
</th>
|
{% if action != "checker_history" %}
|
||||||
<th>
|
<th>Port</th>
|
||||||
Host
|
{% endif %}
|
||||||
</th>
|
<th>Alert</th>
|
||||||
{% if action != "checker_history" %}
|
<th>Date</th>
|
||||||
<th>
|
<th>Time</th>
|
||||||
Port
|
</tr>
|
||||||
</th>
|
|
||||||
{% endif %}
|
|
||||||
<th>
|
|
||||||
Alert
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
Date
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
Time
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% if smon != '' %}
|
{% if smon != '' %}
|
||||||
|
@ -59,27 +46,18 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<span style="color: {{color}};"><b>{{t.1 |upper}}</b></span>
|
<span style="color: {{color}};"><b>{{t.1 |upper}}</b></span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>{{t.2}}</td>
|
||||||
{{t.2}}
|
|
||||||
</td>
|
|
||||||
{% if action != "checker_history" %}
|
{% if action != "checker_history" %}
|
||||||
<td>
|
<td>{{t.3}}</td>
|
||||||
{{t.3}}
|
|
||||||
</td>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<td>
|
<td>{{t.0}}</td>
|
||||||
{{t.0}}
|
<td>{{t.4.split(' ')[0]}}
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{t.4.split(' ')[0]}}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{t.4.split(' ')[1]}}
|
|
||||||
</td>
|
</td>
|
||||||
|
<td>{{t.4.split(' ')[1]}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="alert alert-warning" style="margin-bottom: 0px;">Table is empty</span>
|
<span class="alert alert-warning" style="margin-bottom: 0px;">Table is empty</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
|
@ -1,7 +1,8 @@
|
||||||
|
{% if service != 'nginx' %}
|
||||||
<div class="bin_bout" id="show_bin_bout">
|
<div class="bin_bout" id="show_bin_bout">
|
||||||
<div class="server-name">
|
<div class="server-name">
|
||||||
Bytes in
|
Bytes in
|
||||||
<span class="update-icon">
|
<span class="update-icon" style="font-size: 13px; margin-top: 8px;">
|
||||||
<a onclick="showBytes('{{ serv }}')" title="Refresh">
|
<a onclick="showBytes('{{ serv }}')" title="Refresh">
|
||||||
<span class="service-reload"></span>
|
<span class="service-reload"></span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -37,9 +38,17 @@
|
||||||
{{total|round(2)}} {{metric}}
|
{{total|round(2)}} {{metric}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
<div id="sessions" class="bin_bout">
|
<div id="sessions" class="bin_bout">
|
||||||
<div class="server-name">
|
<div class="server-name">
|
||||||
Current ses
|
Current ses
|
||||||
|
{% if service == 'nginx' %}
|
||||||
|
<span class="update-icon" style="font-size: 13px; margin-top: 8px;">
|
||||||
|
<a onclick="showNginxConnections('{{ serv }}')" title="Refresh">
|
||||||
|
<span class="service-reload"></span>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="bytes" id="cur_sess">
|
<div class="bytes" id="cur_sess">
|
||||||
{{bin_bout.2}}
|
{{bin_bout.2}}
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
<a style="color: #000; cursor: pointer;">
|
<a style="color: #000; cursor: pointer;">
|
||||||
{% if new_ver_without_dots > current_ver_without_dots and new_ver != "Sorry cannot get current version" %}
|
{% if new_ver_without_dots > current_ver_without_dots and new_ver != "Sorry cannot get current version" %}
|
||||||
<span id="show-updates-button" class="new-version-exists">v{{current_ver}} </span>
|
<span id="show-updates-button" class="new-version-exists">v{{current_ver}} </span>
|
||||||
|
<script defer src="/inc/fontawesome.min.js"></script>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="/app/users.py#updatehapwi" title="Update center" style="color: black;">v{{current_ver}}</a>
|
<a href="/app/users.py#updatehapwi" title="Update center" style="color: black;">v{{current_ver}}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -622,6 +622,32 @@ function viewLogs() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$( function() {
|
$( function() {
|
||||||
|
$.ajax( {
|
||||||
|
url: "options.py",
|
||||||
|
data: {
|
||||||
|
show_versions: 1,
|
||||||
|
token: $('#token').val()
|
||||||
|
},
|
||||||
|
type: "POST",
|
||||||
|
success: function( data ) {
|
||||||
|
$('#version').html(data);
|
||||||
|
var showUpdates = $( "#show-updates" ).dialog({
|
||||||
|
autoOpen: false,
|
||||||
|
width: 600,
|
||||||
|
modal: true,
|
||||||
|
title: 'There is a new version HAProxy-WI',
|
||||||
|
buttons: {
|
||||||
|
Close: function() {
|
||||||
|
$( this ).dialog( "close" );
|
||||||
|
clearTips();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$('#show-updates-button').click(function() {
|
||||||
|
showUpdates.dialog('open');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} );
|
||||||
$('a').click(function(e) {
|
$('a').click(function(e) {
|
||||||
try {
|
try {
|
||||||
var cur_path = window.location.pathname;
|
var cur_path = window.location.pathname;
|
||||||
|
@ -838,33 +864,6 @@ $( function() {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
$.ajax( {
|
|
||||||
url: "options.py",
|
|
||||||
data: {
|
|
||||||
show_versions: 1,
|
|
||||||
token: $('#token').val()
|
|
||||||
},
|
|
||||||
type: "POST",
|
|
||||||
success: function( data ) {
|
|
||||||
$('#version').html(data);
|
|
||||||
}
|
|
||||||
} );
|
|
||||||
var showUpdates = $( "#show-updates" ).dialog({
|
|
||||||
autoOpen: false,
|
|
||||||
width: 600,
|
|
||||||
modal: true,
|
|
||||||
title: 'There is a new version HAProxy-WI',
|
|
||||||
buttons: {
|
|
||||||
Close: function() {
|
|
||||||
$( this ).dialog( "close" );
|
|
||||||
clearTips();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$('#show-updates-button').click(function() {
|
|
||||||
showUpdates.dialog('open');
|
|
||||||
});
|
|
||||||
var showUserSettings = $( "#show-user-settings" ).dialog({
|
var showUserSettings = $( "#show-user-settings" ).dialog({
|
||||||
autoOpen: false,
|
autoOpen: false,
|
||||||
width: 600,
|
width: 600,
|
||||||
|
@ -955,6 +954,7 @@ $( function() {
|
||||||
$(this).children(".services").css('padding-left', '30px');
|
$(this).children(".services").css('padding-left', '30px');
|
||||||
$(this).children(".services").css('border-left', '4px solid #5D9CEB');
|
$(this).children(".services").css('border-left', '4px solid #5D9CEB');
|
||||||
});
|
});
|
||||||
|
loadServices();
|
||||||
$( "#tabs" ).tabs( "option", "active", 7 );
|
$( "#tabs" ).tabs( "option", "active", 7 );
|
||||||
} );
|
} );
|
||||||
$( ".updatehapwi" ).on( "click", function() {
|
$( ".updatehapwi" ).on( "click", function() {
|
||||||
|
@ -965,6 +965,7 @@ $( function() {
|
||||||
$(this).children(".updatehapwi").css('border-left', '4px solid #5D9CEB');
|
$(this).children(".updatehapwi").css('border-left', '4px solid #5D9CEB');
|
||||||
});
|
});
|
||||||
$( "#tabs" ).tabs( "option", "active", 8 );
|
$( "#tabs" ).tabs( "option", "active", 8 );
|
||||||
|
loadupdatehapwi();
|
||||||
} );
|
} );
|
||||||
} else {
|
} else {
|
||||||
$( ".runtime" ).on( "click", function() {
|
$( ".runtime" ).on( "click", function() {
|
||||||
|
|
Loading…
Reference in New Issue