optimize ui
add new ki endpoint params
This commit is contained in:
@@ -1,32 +1,43 @@
|
||||
{% extends 'admin/base.html.twig' %}
|
||||
|
||||
{% block title %}Ingest Jobs{% endblock %}
|
||||
{% block title %}Indexierung (Ingest Jobs){% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
<h1 class="h4 mb-4">Indexierung (Ingest Jobs-Liste)</h1>
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h1 class="h3">Indexierung (Ingest Jobs)</h1>
|
||||
|
||||
<form method="post"
|
||||
action="{{ path('admin_global_reindex') }}"
|
||||
onsubmit="return confirm('Global Reindex starten? Dies kann einige Zeit dauern.');">
|
||||
{% if is_granted('ROLE_SUPER_ADMIN') %}
|
||||
<form method="post"
|
||||
action="{{ path('admin_global_reindex') }}"
|
||||
onsubmit="return confirm('Global Reindex starten? Dies kann je nach Datenmenge mehrere Minuten dauern.');"
|
||||
class="mb-0">
|
||||
|
||||
<button type="submit"
|
||||
class="btn btn-danger mb-3">
|
||||
Global Reindex starten
|
||||
</button>
|
||||
</form>
|
||||
<input type="hidden"
|
||||
name="_token"
|
||||
value="{{ csrf_token('global_reindex') }}">
|
||||
|
||||
<button type="submit"
|
||||
class="btn btn-sm btn-outline-danger">
|
||||
Global Reindex starten
|
||||
</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if jobs is empty %}
|
||||
|
||||
<div class="alert alert-secondary">
|
||||
Keine Jobs vorhanden.
|
||||
Keine Ingest Jobs vorhanden.
|
||||
</div>
|
||||
|
||||
{% else %}
|
||||
|
||||
<div class="card bg-black text-info border-secondary">
|
||||
<div class="card bg-black border-secondary">
|
||||
<div class="card-body p-0">
|
||||
|
||||
<table class="table table-dark table-hover mb-0">
|
||||
<thead>
|
||||
<table class="table table-dark table-striped table-hover align-middle mb-0">
|
||||
<thead class="table-secondary text-dark">
|
||||
<tr>
|
||||
<th>Job-ID</th>
|
||||
<th>Typ</th>
|
||||
@@ -35,20 +46,26 @@
|
||||
<th>Version</th>
|
||||
<th>Gestartet</th>
|
||||
<th>Beendet</th>
|
||||
<th>User</th>
|
||||
<th>Benutzer</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
{% for job in jobs %}
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<td class="small">
|
||||
<a href="{{ path('admin_job_show', {id: job.id}) }}"
|
||||
class="text-light">
|
||||
class="text-light text-decoration-none">
|
||||
{{ job.id }}
|
||||
</a>
|
||||
</td>
|
||||
<td>{{ job.type }}</td>
|
||||
|
||||
<td>
|
||||
<span class="badge bg-info text-dark">
|
||||
{{ job.type }}
|
||||
</span>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{% if job.status == 'COMPLETED' %}
|
||||
@@ -60,52 +77,59 @@
|
||||
{% elseif job.status == 'FAILED' %}
|
||||
<span class="badge bg-danger">FAILED</span>
|
||||
{% else %}
|
||||
<span class="badge bg-secondary">{{ job.status }}</span>
|
||||
<span class="badge bg-dark border border-secondary">
|
||||
{{ job.status }}
|
||||
</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{% if job.documentId %}
|
||||
<a href="/admin/documents/{{ job.documentId }}" class="text-light">{{ job.documentId }}</a>
|
||||
<a href="{{ path('admin_document_show', {id: job.documentId}) }}"
|
||||
class="text-light text-decoration-none">
|
||||
{{ job.documentId }}
|
||||
</a>
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{% if job.documentVersionId %}
|
||||
{{ job.documentVersionId }}
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
{{ job.documentVersionId ?? '-' }}
|
||||
</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 class="small">
|
||||
{{ job.startedAt ? job.startedAt|date('d.m.Y H:i:s') : '-' }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{% if job.startedBy %}
|
||||
{{ job.startedBy.email }}
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
<td class="small">
|
||||
{{ job.finishedAt ? job.finishedAt|date('d.m.Y H:i:s') : '-' }}
|
||||
</td>
|
||||
|
||||
<td class="small">
|
||||
{{ job.startedBy ? job.startedBy.email : '-' }}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="8" class="text-center text-secondary py-4">
|
||||
Keine Jobs gefunden.
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
|
||||
<div class="mt-4 small text-secondary">
|
||||
Hinweis: Während laufender Jobs (Status RUNNING) sollten keine
|
||||
parallelen Reindex-Prozesse gestartet werden.
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user