fix link to a particular check report stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 20 Oct 2009 14:02:49 +0200
branchstable
changeset 310 7dcfc88d514c
parent 309 dec84f991c96
child 311 f5e22501293e
fix link to a particular check report
views/reports.py
--- a/views/reports.py	Tue Oct 20 13:57:47 2009 +0200
+++ b/views/reports.py	Tue Oct 20 14:02:49 2009 +0200
@@ -98,9 +98,8 @@
             checkresult = conf.latest_check_result_by_name(column)
             if checkresult:
                 status = checkresult.status
-                url = checkresult.execution.absolute_url()
-                title = Link(xml_escape('%s#%s' % (url, column)), _(status),
-                             klass='apycot_title')
+                url = checkresult.execution.absolute_url(tab=column)
+                title = Link(xml_escape(url), _(status), klass='apycot_title')
             else:
                 title = _('nc')
                 status = 'nc'