diff default/ticket/item.html @ 57:50957f0669b9

ticket/item: URLs in body are now clickable
author Goffi <goffi@goffi.org>
date Sun, 05 Nov 2017 23:38:09 +0100
parents ea67eba3199d
children e7b62f6980a1
line wrap: on
line diff
--- a/default/ticket/item.html	Sun Nov 05 22:04:34 2017 +0100
+++ b/default/ticket/item.html	Sun Nov 05 23:38:09 2017 +0100
@@ -21,8 +21,9 @@
 <div id="{{ item.widget_value['id'] }}" class="view single ticket box">
     {{ xmlui.generate(item,
         form=false,
-        filters={'created': {'filters': ['date_fmt'], filters_args:[{'fmt': 'short'}]},
-                 'updated': {'filters': ['date_fmt'], filters_args:[{'fmt': 'short'}]}},
+        filters={'created': {'filters': ['date_fmt'], 'filters_args':[{'fmt': 'short'}]},
+                 'updated': {'filters': ['date_fmt'], 'filters_args':[{'fmt': 'short'}]},
+                 'body': {'filters': ['urlize'], 'filters_args':[{'nofollow': True, 'rel': 'noopener noreferrer'}]}},
         )}}
 </div>
 {% if comments is defined %}