Audit log view
move error logs to logs Add links for new logs in header
This commit is contained in:
46
app/templates/logs/audit.html.j2
Normal file
46
app/templates/logs/audit.html.j2
Normal file
@@ -0,0 +1,46 @@
|
||||
{% extends 'base.html.j2' %}
|
||||
|
||||
{% block title %}
|
||||
Audit Log
|
||||
{% endblock title %}
|
||||
|
||||
{% block content_before %}
|
||||
Audit Log
|
||||
{% endblock content_before %}
|
||||
|
||||
{% block content %}
|
||||
{% if message %}
|
||||
<div class="row">
|
||||
<div class="col text-center">
|
||||
<h3>{{ message }}</h3>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
{% endif %}
|
||||
<table class="table table-dark table-striped table-bordered table-hover" id="audit_table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Account</th>
|
||||
<th>Command</th>
|
||||
<th>Date</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block js %}
|
||||
{{ super () }}
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
let audit_table = $('#audit_table').DataTable({
|
||||
"order": [[0, "desc"]],
|
||||
"processing": true,
|
||||
"serverSide": true,
|
||||
"ajax": "{{ url_for('log.get_audits') }}",
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
15
app/templates/logs/error.html.j2
Normal file
15
app/templates/logs/error.html.j2
Normal file
@@ -0,0 +1,15 @@
|
||||
{% extends 'base.html.j2' %}
|
||||
|
||||
{% block title %}LOGS{% endblock %}
|
||||
|
||||
{% block content_before %}
|
||||
LOGS - {{ config.APP_NAME }}
|
||||
{% endblock %}
|
||||
|
||||
{% block content_override %}
|
||||
<div class="bg-white mx-5 p-3 rounded">
|
||||
<code>
|
||||
{{ logs }}
|
||||
</code>
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user