changeset 2730:cb7664022b31

Added link to depends_on and superseded_by in ticket modify view
author Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
date Fri, 15 Aug 2014 20:59:17 +0530
parents f94b80842ada
children efb94e228614
files MoinMoin/static/css/stylus/ticket.styl MoinMoin/static/css/ticket.css MoinMoin/templates/ticket/base.html
diffstat 3 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/static/css/stylus/ticket.styl	Fri Aug 15 13:50:55 2014 +0200
+++ b/MoinMoin/static/css/stylus/ticket.styl	Fri Aug 15 20:59:17 2014 +0530
@@ -117,3 +117,6 @@
 
 dl dd
     padding-bottom 10px
+
+.moin-ticket-link
+    padding-left 150px
--- a/MoinMoin/static/css/ticket.css	Fri Aug 15 13:50:55 2014 +0200
+++ b/MoinMoin/static/css/ticket.css	Fri Aug 15 20:59:17 2014 +0530
@@ -14,3 +14,4 @@
 h2{border-bottom:none}
 dt label{padding-top:10px}
 dl dd{padding-bottom:10px}
+.moin-ticket-link{padding-left:150px}
--- a/MoinMoin/templates/ticket/base.html	Fri Aug 15 13:50:55 2014 +0200
+++ b/MoinMoin/templates/ticket/base.html	Fri Aug 15 20:59:17 2014 +0530
@@ -21,6 +21,11 @@
         'depends_on',
         ] %}
         {{ forms.render(form['meta'][e]) }}
+        {% if e!='assigned_to' and item.meta[e] %}
+            <dd>
+                <a class="moin-ticket-link"  href="{{ url_for_item(item.meta[e], field='itemid') }}">{{item.meta[e]|shorten_id}}</a>
+            </dd>
+        {% endif %}
     {% endfor %}
 {% endmacro %}