From ae2e9d00cd5d85463612825af971cf4834ed5b51 Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Thu, 12 Mar 2020 12:11:39 -0400 Subject: [PATCH] Bug 1621278 - Make bug IDs on search results proper bug links --- template/en/default/list/table.html.tmpl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/template/en/default/list/table.html.tmpl b/template/en/default/list/table.html.tmpl index 78cef0f94..86aca78ed 100644 --- a/template/en/default/list/table.html.tmpl +++ b/template/en/default/list/table.html.tmpl @@ -209,12 +209,13 @@ [% END %] - [% bug.bug_id %] + [% bug.bug_id FILTER bug_link(bug.bug_id) FILTER none %] [%+ '[SEC]' IF bug.secure_mode %] [% FOREACH column = displaycolumns %] [% col_abbrev = abbrev.$column %] + [% col_type = bug_fields.$column.type %] [%- bug.$column.truncate(col_abbrev.maxlength, col_abbrev.ellipsis) FILTER html FILTER wbr -%] - [% ELSIF bug_fields.$column.type == constants.FIELD_TYPE_BUG_ID %] - - [%- bug.$column.truncate(col_abbrev.maxlength, col_abbrev.ellipsis) FILTER html -%] - + [% ELSIF col_type == constants.FIELD_TYPE_BUG_ID || col_type == constants.FIELD_TYPE_BUG_LIST %] + [% FOREACH id = bug.$column.split(', ') %] + [% id FILTER bug_link(id) FILTER none %][% ', ' UNLESS loop.last() %] + [% END %] [% ELSE %] [%- display_value(column, bug.$column).truncate(col_abbrev.maxlength, col_abbrev.ellipsis) FILTER html -%] [% END %] -- 2.47.3