]> 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 22:58:27 +0000 (23:58 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 2 Nov 2010 22:58:27 +0000 (23:58 +0100)
r=pyrzak a=LpSolit

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

index 1eb4574bfce6aece1d7499ac697649040065a072..82998993fcb1f6791400e446459fe813769438ea 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 %]