summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl3
-rw-r--r--extensions/BugModal/template/en/default/bug_modal/flags.html.tmpl20
2 files changed, 13 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 2663d5562..eca6f5805 100644
--- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
+++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
@@ -576,13 +576,12 @@
[%# needinfo %]
[% WRAPPER bug_modal/field.html.tmpl
container = 1
- label = "NeedInfo"
+ label = "NeedInfo From"
hide_on_view = needinfo.size == 0
hide_on_edit = 1
%]
[% INCLUDE bug_modal/flags.html.tmpl
types = bug.flag_types.only("name", "needinfo")
- no_label = 1
view_only = 1
%]
[% END %]
diff --git a/extensions/BugModal/template/en/default/bug_modal/flags.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/flags.html.tmpl
index 0c0362902..3e0da1173 100644
--- a/extensions/BugModal/template/en/default/bug_modal/flags.html.tmpl
+++ b/extensions/BugModal/template/en/default/bug_modal/flags.html.tmpl
@@ -9,21 +9,25 @@
[%#
# types: array of flag_type objects
# no_label: if set to a true value, flag name and status will not be outputted (default: false)
- # read_only: if true, don't output edit ui (default: false)
+ # view_only: if true, don't output edit ui (default: false)
#%]
-[% IF read_only %]
+[% IF view_only %]
<div class="flags edit-hide">
[% FOREACH type IN types %]
[% FOREACH flag IN type.flags %]
<div class="flag">
- [% UNLESS no_label %]
- [% INCLUDE bug_modal/user.html.tmpl u=flag.setter nick_only=1 %]
- [%+ flag.type.name FILTER html %][% flag.status FILTER none %]
- [% END %]
- [% IF flag.requestee %]
- [%+ INCLUDE bug_modal/user.html.tmpl u=flag.requestee nick_only=1 %]
+ [% INCLUDE bug_modal/user.html.tmpl u=flag.requestee nick_only=1 %]
+ [% activity_id = bug.find_activity_id_for_flag(flag) %]
+ [% IF activity_id %]
+ <a href="#[% activity_id FILTER none %]"
+ [% ELSE %]
+ <span
[% END %]
+ class="[% " activity-ref" IF activity_id %]"
+ >
+ [% INCLUDE bug_modal/rel_time.html.tmpl ts=flag.creation_date %]
+ [% activity_id ? "</a>" : "</span>" %]
</div>
[% END %]
[% END %]