]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1211891 - needinfo requests where the current user is the requestee shouldn't...
authorByron Jones <glob@mozilla.com>
Mon, 12 Oct 2015 15:04:17 +0000 (23:04 +0800)
committerByron Jones <glob@mozilla.com>
Mon, 12 Oct 2015 15:04:17 +0000 (23:04 +0800)
extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
extensions/BugModal/template/en/default/bug_modal/flags.html.tmpl

index 2663d5562b3f87f6bb56d770caabe98fe4f5185c..eca6f580534125a9d2ff5416bb5aec2a7e93e81f 100644 (file)
     [%# 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 %]
index 0c0362902f946d83f19f44205ace62e38584f643..3e0da1173ba4b7a7b705abbaa5df311f29800099 100644 (file)
@@ -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 %]