gitmirror/templates/logs.html
Jonas Rosland 06a77bb5e6 First commit
Signed-off-by: Jonas Rosland <jonas.rosland@gmail.com>
2025-03-14 09:04:43 -04:00

56 lines
No EOL
2.2 KiB
HTML

{% extends "base.html" %}
{% block title %}Logs - GitHub to Gitea Mirror{% endblock %}
{% block content %}
<div class="row">
<div class="col-md-12">
<h1>Logs</h1>
<div class="mb-3">
<a href="/" class="btn btn-secondary">Back to Home</a>
<a href="/repos" class="btn btn-primary">View Repositories</a>
</div>
<div class="card">
<div class="card-header">
<h5 class="card-title mb-0">Available Log Files</h5>
</div>
<div class="card-body">
{% if log_files %}
<div class="table-responsive">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Filename</th>
<th>Size</th>
<th>Date</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for log in log_files %}
<tr>
<td>{{ log.name }}</td>
<td>{{ (log.size / 1024) | round(2) }} KB</td>
<td>{{ log.mtime }}</td>
<td>
<a href="/logs/{{ log.name }}" class="btn btn-sm btn-primary">View Log</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% else %}
<div class="alert alert-info">
<p>No log files found in the logs directory.</p>
<p>Log files are created when mirror operations are performed. Try running a mirror operation first.</p>
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% endblock %}