comparison default/ticket/item.html @ 66:9834106678da

base: menu implementation: 2 menus are now handled: main menu and category menu (for submenus relative to a page). Main menu is displayed on the side bar on big screen. Added menu for tickets.
author Goffi <goffi@goffi.org>
date Fri, 01 Dec 2017 00:46:42 +0100
parents e7b62f6980a1
children 18d00a8afc4d
comparison
equal deleted inserted replaced
65:dd15b6c0b1d3 66:9834106678da
4 @variable comments(data_object.BlogItems): comments of the ticket 4 @variable comments(data_object.BlogItems): comments of the ticket
5 @variable comments_service(unicode): service for adding comments 5 @variable comments_service(unicode): service for adding comments
6 @variable comments_node(unicode): node for adding comments 6 @variable comments_node(unicode): node for adding comments
7 #} 7 #}
8 8
9 {% set menus = [(url_tickets_list, _('Tickets list'), 'tickets_list'), 9 {% set category_menus = [('tickets_list', url_tickets_list),
10 (url_tickets_new, _('Create new ticket'), 'ticket_new')] %} 10 ('ticket_new', url_tickets_new)] %}
11 {% if not embedded %}{% extends 'base/base.html' %}{% endif %} 11 {% if not embedded %}{% extends 'base/base.html' %}{% endif %}
12 {% import 'input/xmlui.html' as xmlui with context %} 12 {% import 'input/xmlui.html' as xmlui with context %}
13 {% import 'blog/macros.html' as blog with context %} 13 {% import 'blog/macros.html' as blog with context %}
14 {% import 'input/comment.html' as comment with context %} 14 {% import 'input/comment.html' as comment with context %}
15 15
19 {% trans %}Your comment has been sent{% endtrans %} 19 {% trans %}Your comment has been sent{% endtrans %}
20 {% endblock confirm_message %} 20 {% endblock confirm_message %}
21 21
22 {% block body %} 22 {% block body %}
23 <div id="{{ item.widget_value['id'] }}" class="view single ticket box"> 23 <div id="{{ item.widget_value['id'] }}" class="view single ticket box">
24 {{ xmlui.generate(item, 24 {{ xmlui.generate(item,
25 form=false, 25 form=false,
26 filters={'created': {'filters': ['date_fmt'], 'filters_args':[{'fmt': 'short'}]}, 26 filters={'created': {'filters': ['date_fmt'], 'filters_args':[{'fmt': 'short'}]},
27 'updated': {'filters': ['date_fmt'], 'filters_args':[{'fmt': 'short'}]}, 27 'updated': {'filters': ['date_fmt'], 'filters_args':[{'fmt': 'short'}]},
28 'body': {'filters': ['urlize'], 'filters_args':[{'nofollow': True, 'rel': 'noopener noreferrer'}]}}, 28 'body': {'filters': ['urlize'], 'filters_args':[{'nofollow': True, 'rel': 'noopener noreferrer'}]}},
29 )}} 29 )}}