From befdcc8f9a30f55e91227bac0ee1813a661002b3 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 4 Oct 2011 18:43:47 -0400 Subject: more porting work --- .../hook/bug/comments-aftercomments.html.tmpl | 47 +++++++++++++--------- 1 file changed, 27 insertions(+), 20 deletions(-) (limited to 'extensions/InlineHistory/template/en') diff --git a/extensions/InlineHistory/template/en/default/hook/bug/comments-aftercomments.html.tmpl b/extensions/InlineHistory/template/en/default/hook/bug/comments-aftercomments.html.tmpl index 4af08dca8..68c3e2703 100644 --- a/extensions/InlineHistory/template/en/default/hook/bug/comments-aftercomments.html.tmpl +++ b/extensions/InlineHistory/template/en/default/hook/bug/comments-aftercomments.html.tmpl @@ -66,25 +66,36 @@ + '>Attachment #[% change.attachid FILTER none %] - '; [% END %] - [%# display duplicates as history rather than comments %] - [% IF change.dupe %] - html += 'Duplicate of this [% terms.bug %]: '; + [%# buglists need to be displayed differently, as we shouldn't use strike-out %] + [% IF change.buglist %] + [% IF change.dupe %] + [% label = 'Duplicate of this ' _ terms.bug %] + [% ELSE %] + [% label = field_descs.${change.fieldname} %] + [% END %] + [% IF change.added != '' %] + html += '[% label FILTER js %]: '; + [% PROCESS add_change value = change.added %] + [% END %] + [% IF change.removed != '' %] + html += 'No longer [% label FILTER lcfirst FILTER js %]: '; + [% PROCESS add_change value = change.removed %] + [% END %] [% ELSE %] html += '[% field_descs.${change.fieldname} FILTER js %]: '; - [% END %] - - [% IF change.removed != '' %] - [% IF change.added == '' %] - html += ''; - [% END %] - [% PROCESS add_change value = change.removed, is_old = 1 %] - [% IF change.added == '' %] - html += ''; - [% ELSE %] - html += ' ➔ '; + [% IF change.removed != '' %] + [% IF change.added == '' %] + html += ''; + [% END %] + [% PROCESS add_change value = change.removed %] + [% IF change.added == '' %] + html += ''; + [% ELSE %] + html += ' ➔ '; + [% END %] [% END %] + [% PROCESS add_change value = change.added %] [% END %] - [% PROCESS add_change value = change.added, is_old = 0 %] [% "html += '
';" UNLESS loop.last %] [% IF change.fieldname == 'cc' %] @@ -112,14 +123,11 @@ [% BLOCK add_change %] html += '[%~%] - [% '' IF is_old %] [% IF change.fieldname == 'estimated_time' || change.fieldname == 'remaining_time' || change.fieldname == 'work_time' %] [% PROCESS formattimeunit time_unit = value FILTER html FILTER js %] - [% ELSIF change.fieldname == 'blocked' || - change.fieldname == 'dependson' || - change.fieldname == 'dupe' %] + [% ELSIF change.buglist %] [% value FILTER bug_list_link FILTER js %] [% ELSIF change.fieldname == 'assigned_to' || change.fieldname == 'reporter' || @@ -130,6 +138,5 @@ [% ELSE %] [% display_value(change.fieldname, value) FILTER html FILTER js %] [% END %] - [% '' IF is_old %] [%~ %]'; [% END %] -- cgit v1.2.3-24-g4f1b