From e2a3c8d2063d60e297e19e9d08c1974b5602b8ec Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Tue, 16 Sep 2014 16:13:27 -0400 Subject: Bug 891199 - clicking on needinfo flag/text should scroll you to the comment which set the flag --- .../template/en/default/bug/needinfo.html.tmpl | 32 +++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'extensions/Needinfo') diff --git a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl index 453f85fe2..d334f232b 100644 --- a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl +++ b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl @@ -21,13 +21,43 @@ [% END %] [% END %] +[% + BLOCK needinfo_comment_div; + match = needinfo_flags.last.creation_date.match('^(\d{4})\.(\d{2})\.(\d{2})(.+)$'); + date = "$match.0-$match.1-$match.2$match.3"; + FOREACH comment IN bug.comments; + NEXT IF comment.is_private AND NOT (user.is_insider || user.id == comment.author.id); + IF comment.creation_ts == date; + GET "c$comment.count"; + LAST; + END; + END; + END; +%] + [% IF needinfo_flagtype %]
[% IF needinfo_flags.size > 0 %] [%# Displays NEEDINFO tag in bug header %] [% END %] -- cgit v1.2.3-24-g4f1b