Files
2026-09-01 10:46:29 -03:00

48 lines
1.8 KiB
Twig
Executable File

{% extends "layouts/dashboard.twig" %}
{% block title %}{{ __('logs.title') }} - {{ platformName }}{% endblock %}
{% block content %}
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1 class="h2">{{ __('logs.title') }}</h1>
</div>
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">{{ __('logs.log_files') }}</h6>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered" width="100%" cellspacing="0">
<thead>
<tr>
<th>{{ __('logs.filename') }}</th>
<th>{{ __('logs.size') }}</th>
<th>{{ __('logs.last_modified') }}</th>
<th>{{ __('logs.actions') }}</th>
</tr>
</thead>
<tbody>
{% for log in logs %}
<tr>
<td>{{ log.name }}</td>
<td>{{ log.size }}</td>
<td>{{ log.modified }}</td>
<td>
<a href="{{ url('admin/logs/view') }}?file={{ log.name }}" class="btn btn-sm btn-info">
<i class="bi bi-eye"></i> {{ __('logs.view') }}
</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="4" class="text-center">{{ __('logs.no_logs') }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}