comparison default/merge-request/item.html @ 140:b1e22caab8bc

ticket (item), merge-request (item): added "edit" button when url_ticket_edit is defined
author Goffi <goffi@goffi.org>
date Fri, 01 Jun 2018 12:47:54 +0200
parents 85877c76d47d
children
comparison
equal deleted inserted replaced
139:909361c96a58 140:b1e22caab8bc
18 {% block confirm_message %} 18 {% block confirm_message %}
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 {{ icon_defs('pencil') }}
23 <div class="tab_container"> 24 <div class="tab_container">
24 <div class="tab_header"> 25 <div class="tab_header">
25 <ul> 26 <ul>
26 <li class="tab_button clicked" onclick='toggle_clicked_class_sel(".tab_button,.tab_page")'>{% trans %}Description{% endtrans %}</li> 27 <li class="tab_button clicked" onclick='toggle_clicked_class_sel(".tab_button,.tab_page")'>{% trans %}Description{% endtrans %}</li>
27 <li class="tab_button" onclick='toggle_clicked_class_sel(".tab_button,.tab_page")'>{% trans %}Patches{% endtrans %}</li> 28 <li class="tab_button" onclick='toggle_clicked_class_sel(".tab_button,.tab_page")'>{% trans %}Patches{% endtrans %}</li>
28 </ul> 29 </ul>
29 </div> 30 </div>
30 <div class="tab_page clicked" id="tab_description"> 31 <div class="tab_page clicked" id="tab_description">
31 <div id="{{ item.widget_value['id'] }}" class="view single ticket box"> 32 <div id="{{ item.widget_value['id'] }}" class="view single ticket box">
33 {% if url_ticket_edit is defined %}
34 <p class="box__tools">
35 <a href="{{url_ticket_edit}}">
36 {{ icon('pencil', cls='icon--small') }}
37 edit
38 </a>
39 </p>
40 {% endif %}
32 {{ xmlui.generate(item, 41 {{ xmlui.generate(item,
33 form=false, 42 form=false,
34 filters={'created': {'filters': ['date_fmt'], 'filters_args':[{'fmt': 'short'}]}, 43 filters={'created': {'filters': ['date_fmt'], 'filters_args':[{'fmt': 'short'}]},
35 'updated': {'filters': ['date_fmt'], 'filters_args':[{'fmt': 'short'}]}, 44 'updated': {'filters': ['date_fmt'], 'filters_args':[{'fmt': 'short'}]},
36 'body': {'filters': ['urlize'], 'filters_args':[{'nofollow': True, 'rel': 'noopener noreferrer'}]}}, 45 'body': {'filters': ['urlize'], 'filters_args':[{'nofollow': True, 'rel': 'noopener noreferrer'}]}},