|
|
|
@ -21,17 +21,19 @@
|
|
|
|
|
|
|
|
|
|
{% block bcright %}
|
|
|
|
|
<div class="d-flex m-t-5 justify-content-end">
|
|
|
|
|
<button class="btn btn-outline" class="dropdown">
|
|
|
|
|
<div class="dropdown-toggle" data-toggle="dropdown"><i class="fas fa-filter align-top text-themecolor text-center font-20" aria-hidden="true"></i></div>
|
|
|
|
|
<div class="align-bottom text-themecolor small text-center">Filter</div>
|
|
|
|
|
<div class="dropdown-menu dropdown-menu-right scale-up">
|
|
|
|
|
<div class="dropdown">
|
|
|
|
|
<button type="button" class="btn btn-outline" data-toggle="dropdown">
|
|
|
|
|
<i class="fas fa-filter align-top text-themecolor text-center font-20" aria-hidden="true"></i>
|
|
|
|
|
<div class="align-bottom text-themecolor small text-center">Filter</div>
|
|
|
|
|
</button>
|
|
|
|
|
<div id="filter_menu" class="dropdown-menu dropdown-menu-right">
|
|
|
|
|
<a href="" class="dropdown-item"><i class="far fa-circle" style="color: black;"></i> All</a>
|
|
|
|
|
<a href="" class="dropdown-item"><i class="fas fa-info-circle" style="color: #1e90ff;"></i> Info</a>
|
|
|
|
|
<a href="" class="dropdown-item"><i class="fas fa-exclamation-circle" style="color: yellow;"></i> Warning</a>
|
|
|
|
|
<a href="" class="dropdown-item"><i class="fas fa-bug" style="color: red;"></i> Error</a>
|
|
|
|
|
<a href="" class="dropdown-item"><i class="fas fa-bug" style="color: black;"></i> Debug</a>
|
|
|
|
|
</div>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endblock bcright %}
|
|
|
|
|
|
|
|
|
@ -124,7 +126,26 @@
|
|
|
|
|
"searchable": false
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
} );
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#refresh_button').on('click', function() {
|
|
|
|
|
table.ajax.reload();
|
|
|
|
|
table.columns.adjust().draw(false);
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
$('#download_button').on('click', function(e) {
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
window.location.href = "{{ url_for('download_log') }}";
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
$('#empty_button').on('click', function() {
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "{{ url_for('emptylog') }}"
|
|
|
|
|
}).done(function (data) {
|
|
|
|
|
table.ajax.reload();
|
|
|
|
|
table.columns.adjust().draw(false);
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
{% endblock tail %}
|
|
|
|
|