From 8010ebf2c19357e4dc8f0ca33f6706aee19280ce Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Fri, 30 Sep 2022 07:22:22 +0100 Subject: [PATCH] Render the words as tags --- core/static/js/column-shifter.js | 7 +++++++ .../ui/drilldown/table_results_partial.html | 20 +++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/core/static/js/column-shifter.js b/core/static/js/column-shifter.js index 19e2100..f0c7a6b 100644 --- a/core/static/js/column-shifter.js +++ b/core/static/js/column-shifter.js @@ -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 { diff --git a/core/templates/ui/drilldown/table_results_partial.html b/core/templates/ui/drilldown/table_results_partial.html index 0ab6e06..64a37de 100644 --- a/core/templates/ui/drilldown/table_results_partial.html +++ b/core/templates/ui/drilldown/table_results_partial.html @@ -364,6 +364,26 @@ {% endif %} + {% elif column.name|slice:":6" == "words_" %} + + {% if cell.0.1|length == 0 %} + + {{ cell }} + + {% else %} +
+ {% for word in cell %} + + {{ word }} + + {% endfor %} +
+ {% endif %} + {% else %}