stash light
This commit is contained in:
109
templates/admin/job/index.html.twig
Normal file
109
templates/admin/job/index.html.twig
Normal file
@@ -0,0 +1,109 @@
|
||||
{% extends 'admin/base.html.twig' %}
|
||||
|
||||
{% block title %}Ingest Jobs{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
<h1 class="h4 mb-4">Ingest Jobs</h1>
|
||||
|
||||
<form method="post"
|
||||
action="{{ path('admin_global_reindex') }}"
|
||||
onsubmit="return confirm('Global Reindex starten? Dies kann einige Zeit dauern.');">
|
||||
|
||||
<button type="submit"
|
||||
class="btn btn-danger mb-3">
|
||||
Global Reindex starten
|
||||
</button>
|
||||
</form>
|
||||
|
||||
{% if jobs is empty %}
|
||||
<div class="alert alert-secondary">
|
||||
Keine Jobs vorhanden.
|
||||
</div>
|
||||
{% else %}
|
||||
|
||||
<div class="card bg-black text-info border-secondary">
|
||||
<div class="card-body p-0">
|
||||
|
||||
<table class="table table-dark table-hover mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Typ</th>
|
||||
<th>Status</th>
|
||||
<th>Dokument</th>
|
||||
<th>Version</th>
|
||||
<th>Gestartet</th>
|
||||
<th>Beendet</th>
|
||||
<th>User</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
{% for job in jobs %}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ path('admin_job_show', {id: job.id}) }}"
|
||||
class="text-decoration-none text-light">
|
||||
{{ job.id }}
|
||||
</a>
|
||||
</td>
|
||||
<td>{{ job.type }}</td>
|
||||
|
||||
<td>
|
||||
{% if job.status == 'COMPLETED' %}
|
||||
<span class="badge bg-success">COMPLETED</span>
|
||||
{% elseif job.status == 'RUNNING' %}
|
||||
<span class="badge bg-warning text-dark">RUNNING</span>
|
||||
{% elseif job.status == 'FAILED' %}
|
||||
<span class="badge bg-danger">FAILED</span>
|
||||
{% else %}
|
||||
<span class="badge bg-secondary">{{ job.status }}</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{% if job.documentId %}
|
||||
{{ job.documentId }}
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{% if job.documentVersionId %}
|
||||
{{ job.documentVersionId }}
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td>{{ job.startedAt|date('d.m.Y H:i:s') }}</td>
|
||||
|
||||
<td>
|
||||
{% if job.finishedAt %}
|
||||
{{ job.finishedAt|date('d.m.Y H:i:s') }}
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{% if job.startedBy %}
|
||||
{{ job.startedBy.email }}
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user