summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl')
-rw-r--r--extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl33
1 files changed, 23 insertions, 10 deletions
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 %]
<div id="status-needinfo">
- (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 %]
+ (<a href="#[% activity_id FILTER none %]"
+ [% ELSE %]
+ (<span
+ [% END %]
+ class="flag-name-status rel-time-title[% " activity-ref" IF activity_id %]"
+ title="[% ni.creation_date FILTER time_duration FILTER html %]"
+ data-time="[% ni.creation_date FILTER epoch FILTER none %]"
+ >NeedInfo
+ [% activity_id ? "</a>" : "</span>" %]
+ 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 ~%]
</div>
[% END %]
[% END %]