fixes
This commit is contained in:
@@ -27,58 +27,51 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<!-- Log Loading Controls -->
|
||||
<div class="row mb-3 align-items-end">
|
||||
<div class="col-md-6">
|
||||
<label for="logs_per_page" class="form-label">Logs Per Page</label>
|
||||
<select class="form-select" id="logs_per_page">
|
||||
<!-- Search & Filter Controls -->
|
||||
<div class="row mb-3 g-2">
|
||||
<div class="col-md-4">
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-text"><i class="bi bi-search"></i></span>
|
||||
<input type="text" class="form-control" id="search_filter" placeholder="Filter logs (regex)...">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="logs_per_page" class="form-label form-label-sm">Logs Per Page</label>
|
||||
<select class="form-select form-select-sm" id="logs_per_page">
|
||||
<option value="25" selected>25</option>
|
||||
<option value="50">50</option>
|
||||
<option value="100">100</option>
|
||||
<option value="200">200</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<button class="btn btn-primary w-100" id="refresh_logs_btn">
|
||||
<i class="bi bi-arrow-clockwise me-2"></i>Refresh
|
||||
<div class="col-md-2">
|
||||
<button class="btn btn-primary btn-sm w-100" id="refresh_logs_btn">
|
||||
<i class="bi bi-arrow-clockwise me-1"></i>Refresh
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="btn-group btn-group-sm w-100" role="group">
|
||||
<button type="button" class="btn btn-outline-secondary" id="clear_filter_btn">
|
||||
<i class="bi bi-x-circle me-1"></i>Clear
|
||||
</button>
|
||||
<button type="button" class="btn btn-outline-secondary" id="toggle_wrap_btn">
|
||||
<i class="bi bi-arrow-left-right me-1"></i>Wrap
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Statistics -->
|
||||
<div class="alert alert-info">
|
||||
<div class="alert alert-info small">
|
||||
<i class="bi bi-info-circle me-2"></i>
|
||||
<strong>Loaded:</strong> <span id="loaded_count">{{ loaded_count|default(0) }}</span> /
|
||||
<strong>Total:</strong> <span id="total_count">{{ total_logs|default(0) }}</span> logs
|
||||
<strong>Total:</strong> <span id="total_count">{{ total_logs|default(0) }}</span> logs |
|
||||
<strong>Matches:</strong> <span id="match_count">0</span>
|
||||
</div>
|
||||
|
||||
<!-- Logs Container -->
|
||||
<div style="max-height: 600px; overflow-y: auto; border: 1px solid #dee2e6; border-radius: 4px; background: #f8f9fa;">
|
||||
<table class="table table-sm mb-0">
|
||||
<tbody id="logs_container">
|
||||
{% if logs %}
|
||||
{% for entry in logs %}
|
||||
<tr>
|
||||
<td>
|
||||
<small style="font-family: monospace; color: #666;">
|
||||
<i class="bi bi-clock text-muted me-1"></i>{{ entry.get('timestamp', 'N/A') }}<br>
|
||||
<span class="text-muted">{{ entry.get('source', 'N/A') }}</span><br>
|
||||
<code style="color: #333; word-break: break-all; display: block; margin-top: 4px;">
|
||||
{{ entry.get('message', 'N/A') }}
|
||||
</code>
|
||||
</small>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<tr>
|
||||
<td class="text-center text-muted py-4">
|
||||
<i class="bi bi-inbox"></i> No logs available
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- Logs Container (Dark Theme) -->
|
||||
<div id="logs_container_wrapper" style="max-height: 700px; overflow-y: auto; border: 1px solid #444; border-radius: 4px; background: #1a1a1a; position: relative;">
|
||||
<pre id="logs_container" style="margin: 0; padding: 12px; color: #e0e0e0; font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace; font-size: 12px; line-height: 1.6; background: #1a1a1a; white-space: pre-wrap; word-wrap: break-word;">Loading logs...</pre>
|
||||
</div>
|
||||
|
||||
<!-- Pagination -->
|
||||
|
||||
Reference in New Issue
Block a user