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 --- .../template/en/default/bug_modal/edit.html.tmpl | 33 +++++++++++++++------- 1 file changed, 23 insertions(+), 10 deletions(-) (limited to 'extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl') diff --git a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl index 9d7588641..7e77e1582 100644 --- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl @@ -216,19 +216,32 @@ [% END %] [% IF needinfo.size %]
- (NeedInfo from - [%+ - IF needinfo.size == 1; - IF needinfo.0.requestee; - INCLUDE bug_modal/user.html.tmpl u=needinfo.0.requestee nick_only=1; + [%~ IF needinfo.size == 1 %] + [% + ni = needinfo.0; + activity_id = bug.find_activity_id_for_flag(ni); + %] + [% IF activity_id %] + (NeedInfo + [% activity_id ? "" : "" %] + from + [% + IF ni.requestee; + INCLUDE bug_modal/user.html.tmpl u=ni.requestee nick_only=1; ELSE; "anyone"; END; - ELSE; - " " _ needinfo.size _ " people"; - END; - ~%] - ) + %]) + [% ELSE %] + (Needinfo from [% needinfo.size FILTER none %] people) + [% END ~%]
[% END %] [% END %] -- cgit v1.2.3-24-g4f1b