add new table values in admin docs and jobs

This commit is contained in:
team 1
2026-02-16 17:23:31 +01:00
parent a6435f4ee3
commit bad2c02da1
2 changed files with 9 additions and 3 deletions

View File

@@ -21,6 +21,7 @@
<thead> <thead>
<tr> <tr>
<th>Titel</th> <th>Titel</th>
<th>ID</th>
<th>Typ</th> <th>Typ</th>
<th>Status</th> <th>Status</th>
<th>Versionen</th> <th>Versionen</th>
@@ -32,13 +33,15 @@
<tbody> <tbody>
{% for document in documents %} {% for document in documents %}
<tr> <tr>
<td> <td>
<a href="{{ path('admin_document_show', {id: document.id}) }}" <a href="{{ path('admin_document_show', {id: document.id}) }}"
class="text-decoration-none text-light"> class="text-decoration-none text-light">
{{ document.title }} {{ document.title }}
</a> </a>
</td> </td>
<td>
{{ document.id }}
</td>
<td> <td>
{% if document.currentVersion %} {% if document.currentVersion %}
<span class="badge bg-secondary"> <span class="badge bg-secondary">

View File

@@ -96,14 +96,17 @@
<tr> <tr>
<th style="width:220px;">chunk_id</th> <th style="width:220px;">chunk_id</th>
<th style="width:180px;">document_id</th> <th style="width:180px;">document_id</th>
<th>text (gekürzt)</th> <th>Text (gekürzt)</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% for item in ndjson.items|default([]) %} {% for item in ndjson.items|default([]) %}
<tr> <tr>
<td>{{ item.chunk_id ?? '-' }}</td> <td>{{ item.chunk_id ?? '-' }}</td>
<td>{{ item.document_id ?? '-' }}</td> <td> <a href="{{ path('admin_document_show', {id: item.document_id}) }}"
class="text-decoration-none text-light">
{{ item.document_id ?? '-' }}
</a></td>
<td> <td>
{% set text = item.text ?? '' %} {% set text = item.text ?? '' %}
{{ text|slice(0, 240) }}{% if text|length > 240 %}{% endif %} {{ text|slice(0, 240) }}{% if text|length > 240 %}{% endif %}