summaryrefslogtreecommitdiffstats
path: root/template/en/default/list
diff options
context:
space:
mode:
authorSimon Green <sgreen@redhat.com>2013-12-02 23:36:04 +0100
committerSimon Green <sgreen@redhat.com>2013-12-02 23:36:04 +0100
commitd8395124b3664e9216e47234b0000ef81341f520 (patch)
tree3695a907d08f4bec2ae60eb7c982766f1d7b8ec9 /template/en/default/list
parent9d297074e0917c0cd7700e2e23984502aa8f5549 (diff)
downloadbugzilla-d8395124b3664e9216e47234b0000ef81341f520.tar.gz
bugzilla-d8395124b3664e9216e47234b0000ef81341f520.tar.xz
Bug 944586 - URLs in the query results are not links
r=glob, a=sgreen
Diffstat (limited to 'template/en/default/list')
-rw-r--r--template/en/default/list/table.html.tmpl5
1 files changed, 5 insertions, 0 deletions
diff --git a/template/en/default/list/table.html.tmpl b/template/en/default/list/table.html.tmpl
index e68542515..17eade1fe 100644
--- a/template/en/default/list/table.html.tmpl
+++ b/template/en/default/list/table.html.tmpl
@@ -206,6 +206,11 @@
<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 %]