Render the words as tags
This commit is contained in:
parent
5530fd762c
commit
8010ebf2c1
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue