Render the words as tags

This commit is contained in:
2022-09-30 07:22:22 +01:00
parent 5530fd762c
commit 8010ebf2c1
2 changed files with 27 additions and 0 deletions

View File

@@ -364,6 +364,26 @@
</span>
{% endif %}
</td>
{% elif column.name|slice:":6" == "words_" %}
<td class="{{ column.name }}">
{% if cell.0.1|length == 0 %}
<a
class="tag is-info"
onclick="populateSearch('{{ column.name }}', '{{ cell }}')">
{{ cell }}
</a>
{% else %}
<div class="tags">
{% for word in cell %}
<a
class="tag is-info"
onclick="populateSearch('{{ column.name }}', '{{ word }}')">
{{ word }}
</a>
{% endfor %}
</div>
{% endif %}
</td>
{% else %}
<td class="{{ column.name }}">
<a