comparison default/merge-request/item.html @ 116:da8f1ba9034d

input/comment: renamed "comment" library to "textbox", and made it more generic
author Goffi <goffi@goffi.org>
date Tue, 30 Jan 2018 07:47:23 +0100
parents 339f4011ed9b
children 85877c76d47d
comparison
equal deleted inserted replaced
115:5d9e2270ceb4 116:da8f1ba9034d
9 {% set category_menu = [('merge-requests_list', url_tickets_list), 9 {% set category_menu = [('merge-requests_list', url_tickets_list),
10 ('merge-request_new', url_tickets_new)] %} 10 ('merge-request_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/textbox.html' as textbox with context %}
15 15
16 {% block title %}{{item|adv_format('[{value.widget_value.id}] {value.widget_value.title}') }}{% endblock %} 16 {% block title %}{{item|adv_format('[{value.widget_value.id}] {value.widget_value.title}') }}{% endblock %}
17 17
18 {% block confirm_message %} 18 {% block confirm_message %}
19 {% trans %}Your comment has been sent{% endtrans %} 19 {% trans %}Your comment has been sent{% endtrans %}
41 {{ blog.show_items(comments|reverse, expanded=true) }} 41 {{ blog.show_items(comments|reverse, expanded=true) }}
42 </div> 42 </div>
43 {% endif %} 43 {% endif %}
44 {% if comments_node is defined %} 44 {% if comments_node is defined %}
45 <div class="comment_post"> 45 <div class="comment_post">
46 {{- comment.comment_or_login(service=comments_service, node=comments_node) -}} 46 {{- textbox.comment_or_login(service=comments_service, node=comments_node) -}}
47 </div> 47 </div>
48 {% endif %} 48 {% endif %}
49 </div> 49 </div>
50 <div class="tab_page" id="tab_patches"> 50 <div class="tab_page" id="tab_patches">
51 {% for patch in patches %} 51 {% for patch in patches %}