From f2cdb2b3f79e7d1d81b4cdea037925b6def06d81 Mon Sep 17 00:00:00 2001 From: Mike Peters Date: Mon, 10 Feb 2020 13:40:11 +0100 Subject: [PATCH] Added characters limition in trackersManagement.html --- .../hunter/templates/trackersManagement.html | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/var/www/modules/hunter/templates/trackersManagement.html b/var/www/modules/hunter/templates/trackersManagement.html index 37d6f189..fee4b2ba 100644 --- a/var/www/modules/hunter/templates/trackersManagement.html +++ b/var/www/modules/hunter/templates/trackersManagement.html @@ -64,8 +64,16 @@ {% for dict_uuid in user_term %} {{dict_uuid['type']}} - - {{dict_uuid['term']}} + + + + {% if dict_uuid['term']|length > 256 %} + {{ dict_uuid['term'][0:256]}}... + {% else %} + {{ dict_uuid['term']}} + {% endif %} + +
{% for tag in dict_uuid['tags'] %} @@ -117,8 +125,16 @@ {% for dict_uuid in global_term %} {{dict_uuid['type']}} - - {{dict_uuid['term']}} + + + + {% if dict_uuid['term']|length > 256 %} + {{ dict_uuid['term'][0:256]}}... + {% else %} + {{ dict_uuid['term']}} + {% endif %} + +
{% for tag in dict_uuid['tags'] %}