Mercurial > libervia-templates
annotate 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 |
rev | line source |
---|---|
56 | 1 {# display a single ticket |
2 | |
3 @variable item(xmlui_item): ticket to display | |
4 @variable comments(data_object.BlogItems): comments of the ticket | |
5 @variable comments_service(unicode): service for adding comments | |
6 @variable comments_node(unicode): node for adding comments | |
7 #} | |
8 | |
9 {% if not embedded %}{% extends 'base/base.html' %}{% endif %} | |
10 {% import 'input/xmlui.html' as xmlui with context %} | |
11 {% import 'blog/macros.html' as blog with context %} | |
12 {% import 'input/comment.html' as comment with context %} | |
13 | |
14 {% block title %}{{item|adv_format('[{value.widget_value.id}] {value.widget_value.title}') }}{% endblock %} | |
15 | |
16 {% block confirm_message %} | |
17 {% trans %}Your comment has been sent{% endtrans %} | |
18 {% endblock confirm_message %} | |
19 | |
20 {% block body %} | |
21 <div id="{{ item.widget_value['id'] }}" class="view single ticket box"> | |
22 {{ xmlui.generate(item, | |
23 form=false, | |
57
50957f0669b9
ticket/item: URLs in body are now clickable
Goffi <goffi@goffi.org>
parents:
56
diff
changeset
|
24 filters={'created': {'filters': ['date_fmt'], 'filters_args':[{'fmt': 'short'}]}, |
50957f0669b9
ticket/item: URLs in body are now clickable
Goffi <goffi@goffi.org>
parents:
56
diff
changeset
|
25 'updated': {'filters': ['date_fmt'], 'filters_args':[{'fmt': 'short'}]}, |
50957f0669b9
ticket/item: URLs in body are now clickable
Goffi <goffi@goffi.org>
parents:
56
diff
changeset
|
26 'body': {'filters': ['urlize'], 'filters_args':[{'nofollow': True, 'rel': 'noopener noreferrer'}]}}, |
56 | 27 )}} |
28 </div> | |
29 {% if comments is defined %} | |
30 <div id="blog_items"> | |
31 {{ blog.show_items(comments|reverse, expanded=true) }} | |
32 </div> | |
33 {% endif %} | |
34 {% if comments_node is defined %} | |
35 <div class="comment_post"> | |
36 {{- comment.comment_or_login(service=comments_service, node=comments_node) -}} | |
37 </div> | |
38 {% endif %} | |
39 {% endblock body %} |