]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 607581: URLs in the See Also field are not linkified when the user is logged out
authorFrédéric Buclin <LpSolit@gmail.com>
Tue, 2 Nov 2010 23:00:48 +0000 (00:00 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 2 Nov 2010 23:00:48 +0000 (00:00 +0100)
r=pyrzak a=LpSolit

template/en/default/bug/field.html.tmpl

index 2417ce39b25e4d57d42c71b8e9a61ab4127af9c6..b014a6e6fbe03cef73f0237248cf6d1c53ff2d45 100644 (file)
     [% IF value %]  
         [% value FILTER bug_link(value, use_alias => 1) FILTER none %]
     [% END %]
+[% ELSIF field.type == constants.FIELD_TYPE_BUG_URLS %]
+  [% '<ul class="bug_urls">' IF value.size %]
+    [% FOREACH url = value %]
+      <li><a href="[% url FILTER html %]">[% url FILTER html %]</a></li>
+    [% END %]
+  [% '</ul>' IF value.size %]
 [% ELSE %]
   [% value.join(', ') FILTER html %]
 [% END %]