removed variable for split character(s) between genres

This commit is contained in:
eclipse 2025-05-08 10:23:31 +02:00
parent 296ce35769
commit 260b444966
2 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,4 @@
{% extends 'base.html' %}
{% set SPLIT_CHARACTER = ", " %}
{% block title %}Texte{% endblock title %}
@ -51,7 +50,7 @@
<td title="Reihe">{{ text["Reihe"] }}</td>
<td title="Textform">{{ text["Textform"] }}</td>
<td title="Sprache">{{ text["Sprache"] }}</td>
<td title="Genres">{{ text["Genre_list"] | join(SPLIT_CHARACTER) }}</td>
<td title="Genres">{{ text["Genre_list"] | join(", ") }}</td>
<td class="action action-update" data-id="{{ text['id'] }}"><a href="{{ url_for('text.read', id=text['id']) }}" title="Text ansehen/bearbeiten"><svg viewbox="0 0 24 24"><use href="#update" /></svg></a></td>
<td id="delete-{{ text['id'] }}" class="action"><a onclick="return confirm('Eintrag wirklich löschen?');" href="{{ url_for('text.delete', id=text['id']) }}" title="Text löschen"><svg viewbox="0 0 24 24"><use href="#delete" /></svg></a></td>
</tr>

View File

@ -1,5 +1,4 @@
{% extends 'base.html' %}
{% set SPLIT_CHARACTER = ", " %}
{% block title %}Werke{% endblock title %}
@ -51,7 +50,7 @@
<td title="Reihe">{{ werk["Reihe"] }}</td>
<td title="Verlag">{{ werk["Verlag"] }}</td>
<td title="Werksform">{{ werk["Werksform"] }}</td>
<td title="Genres">{{ werk["Genre_list"] | join(SPLIT_CHARACTER) }}</td>
<td title="Genres">{{ werk["Genre_list"] | join(", ") }}</td>
<td class="action action-update" data-id="{{ werk['id'] }}"><a href="{{ url_for('werk.read', id=werk['id']) }}" title="Werk ansehen/bearbeiten"><svg viewbox="0 0 24 24"><use href="#update" /></svg></a></td>
<td id="delete-{{ werk['id'] }}" class="action"><a onclick="return confirm('Eintrag wirklich löschen?');" href="{{ url_for('werk.delete', id=werk['id']) }}" title="Werk löschen"><svg viewbox="0 0 24 24"><use href="#delete" /></svg></a></td>
</tr>