From 44cd79261e988e83b1d8293f81c9b74f26942157 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 10 Aug 2015 23:21:22 +0800 Subject: Bug 1146761 - clicking on a date/flag/etc should scroll to the corresponding change --- .../en/default/bug_modal/attachments.html.tmpl | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'extensions/BugModal/template/en/default/bug_modal/attachments.html.tmpl') diff --git a/extensions/BugModal/template/en/default/bug_modal/attachments.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/attachments.html.tmpl index 1658a0408..ca47047fc 100644 --- a/extensions/BugModal/template/en/default/bug_modal/attachments.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/attachments.html.tmpl @@ -40,7 +40,13 @@ [% END %]
- [% INCLUDE bug_modal/rel_time.html.tmpl ts=attachment.attached %] + [% activity_id = bug.find_activity_id_for_attachment(attachment) %] + [% IF activity_id %] + + [% INCLUDE bug_modal/rel_time.html.tmpl ts=attachment.attached %] + [% ELSE %] + [% INCLUDE bug_modal/rel_time.html.tmpl ts=attachment.attached %] + [% END %] [% INCLUDE bug_modal/user.html.tmpl u=attachment.attacher %]
@@ -56,9 +62,18 @@ [% FOREACH flag IN attachment.flags %]
[% INCLUDE bug_modal/user.html.tmpl u=flag.setter simple=1 %]: - + [% activity_id = bug.find_activity_id_for_flag(flag) %] + [% IF activity_id %] + [%+ flag.type.name FILTER html %][% flag.status FILTER none %] - + [% activity_id ? "" : "" %] [% IF flag.requestee %] [%+ INCLUDE bug_modal/user.html.tmpl u=flag.requestee simple=1 %] [% END %] -- cgit v1.2.3-24-g4f1b