modified: templates/logs.html
This commit is contained in:
@@ -15,19 +15,6 @@
|
||||
<div class="card-body">
|
||||
<button class="btn btn-primary mb-3" onclick="refreshLogs()">Refresh Logs</button>
|
||||
<a href="{{ url_for('download_logs') }}" class="btn btn-secondary mb-3">Download Logs</a>
|
||||
<button class="btn btn-warning mb-3" onclick="archiveLogs()">Archive Logs</button>
|
||||
|
||||
<script>
|
||||
function archiveLogs() {
|
||||
fetch('{{ url_for("archive_logs") }}', { method: "POST" })
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
alert(data.message);
|
||||
refreshLogs();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<pre id="log-content"
|
||||
style="height: 500px; overflow-y: scroll; background-color: #f8f9fa; padding: 10px; border: 1px solid #ddd;"></pre>
|
||||
<a href="{{ url_for('index') }}" class="btn btn-secondary btn-block mt-3">Back to Dashboard</a>
|
||||
|
||||
Reference in New Issue
Block a user