Commits

Anonymous committed ef07dce

linkify change if possible

Comments (0)

Files changed (2)

tinder/templates/tinder/builds_for.html

 {% endif %}
 </p>
 <p>
+{% if url %}<a href="{{url}}" target="_blank">{% endif %}
 {{ change.comments }}
+{% if url %}</a>{% endif %}
 </p>
 {% if pending %}<p>{{ pending }} builds pending</p>{% endif %}
 {% for build in done_builds %}
         done.append({'build': b,
                      'class': (b.result is not None and resultclasses[b.result])
                      or ''})
+
+    try:
+        from life.models import Push
+        url = str(Push.objects.get(changesets__revision=change.revison,
+                                   changesets__repository__name=change.branch))
+    except:
+        url=None
     
     return render_to_response('tinder/builds_for.html',
                               {'done_builds': done,
                                'pending': pending,
+                               'url': url,
                                'change': change})