mirror of
https://github.com/sstent/GarminSync.git
synced 2026-01-25 16:42:20 +00:00
80 lines
2.8 KiB
HTML
80 lines
2.8 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<div class="container">
|
|
<div class="d-flex justify-content-between align-items-center mb-4">
|
|
<h1>Sync Logs</h1>
|
|
<div>
|
|
<button class="btn btn-secondary" onclick="refreshLogs()">Refresh</button>
|
|
<button class="btn btn-warning" onclick="clearLogs()">Clear Logs</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Filters -->
|
|
<div class="card mb-4">
|
|
<div class="card-header">Filters</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<select id="status-filter" class="form-control">
|
|
<option value="">All Statuses</option>
|
|
<option value="success">Success</option>
|
|
<option value="error">Error</option>
|
|
<option value="partial">Partial</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<select id="operation-filter" class="form-control">
|
|
<option value="">All Operations</option>
|
|
<option value="sync">Sync</option>
|
|
<option value="download">Download</option>
|
|
<option value="daemon">Daemon</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<input type="date" id="date-filter" class="form-control">
|
|
</div>
|
|
<div class="col-md-3">
|
|
<button class="btn btn-primary" onclick="applyFilters()">Apply</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Logs Table -->
|
|
<div class="card">
|
|
<div class="card-header">Log Entries</div>
|
|
<div class="card-body">
|
|
<div class="table-responsive">
|
|
<table class="table table-striped" id="logs-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Timestamp</th>
|
|
<th>Operation</th>
|
|
<th>Status</th>
|
|
<th>Message</th>
|
|
<th>Activities Processed</th>
|
|
<th>Activities Downloaded</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="logs-tbody">
|
|
<!-- Populated by JavaScript -->
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<!-- Pagination -->
|
|
<nav>
|
|
<ul class="pagination justify-content-center" id="pagination">
|
|
<!-- Populated by JavaScript -->
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
<script src="/static/logs.js"></script>
|
|
{% endblock %}
|