diff 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
line wrap: on
line diff
--- a/default/merge-request/item.html	Fri Jun 01 12:46:08 2018 +0200
+++ b/default/merge-request/item.html	Fri Jun 01 12:47:54 2018 +0200
@@ -20,6 +20,7 @@
 {% endblock confirm_message %}
 
 {% block body %}
+{{ icon_defs('pencil') }}
 <div class="tab_container">
     <div class="tab_header">
         <ul>
@@ -29,6 +30,14 @@
     </div>
     <div class="tab_page clicked" id="tab_description">
         <div id="{{ item.widget_value['id'] }}" class="view single ticket box">
+            {% if url_ticket_edit is defined %}
+                <p class="box__tools">
+                    <a href="{{url_ticket_edit}}">
+                    {{ icon('pencil', cls='icon--small') }}
+                    edit
+                    </a>
+                </p>
+            {% endif %}
             {{ xmlui.generate(item,
                 form=false,
                 filters={'created': {'filters': ['date_fmt'], 'filters_args':[{'fmt': 'short'}]},