Render the words as tags

This commit is contained in:
Mark Veidemanis 2022-09-30 07:22:22 +01:00
parent 5530fd762c
commit 8010ebf2c1
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 27 additions and 0 deletions

View File

@ -43,6 +43,7 @@ $(document).ready(function(){
"guild_member_count": "off",
"bot": "off",
"msg_id": "off",
"user": "off",
"net_id": "off",
"user_id": "off",
"nick_id": "off",
@ -63,6 +64,12 @@ $(document).ready(function(){
"file_md5": "off",
"file_ext": "off",
"file_size": "off",
"lang_code": "off",
//"lang_name": "off",
"words_noun": "off",
"words_adj": "off",
"words_verb": "off",
"words_adv": "off"
},
};
} else {

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