]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 944586 - URLs in the query results are not links
authorSimon Green <sgreen@redhat.com>
Mon, 2 Dec 2013 22:36:04 +0000 (08:36 +1000)
committerSimon Green <sgreen@redhat.com>
Mon, 2 Dec 2013 22:36:04 +0000 (08:36 +1000)
r=glob, a=sgreen

template/en/default/list/table.html.tmpl

index e6854251590802a4779d79157171ffd96f5f694c..17eade1fe9dd20ca36ed83b6e34f90df65046bab 100644 (file)
         <a href="show_bug.cgi?id=[% bug.$column FILTER html %]">
           [%- bug.$column.truncate(col_abbrev.maxlength, col_abbrev.ellipsis) FILTER html -%]
         </a>
+      [% ELSIF column == 'bug_file_loc' && is_safe_url(bug.bug_file_loc) %]
+        <a href="[% bug.bug_file_loc FILTER html %]" target="_blank"
+           title="[% bug.bug_file_loc FILTER html %]">
+          [%- display_value(column, bug.$column).truncate(col_abbrev.maxlength, col_abbrev.ellipsis) FILTER html -%]
+        </a>
       [% ELSE %]
         [%- display_value(column, bug.$column).truncate(col_abbrev.maxlength, col_abbrev.ellipsis) FILTER html -%]
       [% END %]