]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1225247 - Bug assignee should be displayed in a more prominent way
authorByron Jones <glob@mozilla.com>
Mon, 30 Nov 2015 08:15:50 +0000 (16:15 +0800)
committerByron Jones <glob@mozilla.com>
Mon, 30 Nov 2015 08:16:02 +0000 (16:16 +0800)
extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl
extensions/BugModal/web/bug_modal.css

index 3c942d9da320903c1240685c19378fbc1f6124ba..35621f54497771e30818ca06d536387f5f2e240b 100644 (file)
   END;
   bugid = bug.id;
 
-  # this is used in a few places
+  # these are used in a few places
   is_cced = bug.cc.contains(user.login);
+  unassigned = (bug.assigned_to.login == "nobody@mozilla.org")
+               || (bug.assigned_to.login.search('\.bugs$'));
 
   # custom fields that have custom rendering, or should not be rendered
   rendered_custom_fields = [
         in [% firefox_fixed_version || bug.target_milestone FILTER html %]
       [% ELSIF bug.dup_id %]
         of [% terms.bug _ " $bug.dup_id" FILTER bug_link(bug.dup_id) FILTER none %]
+      [% ELSIF bug.resolution == "" %]
+        <div id="status-assignee">
+          [%
+            IF unassigned;
+              "Unassigned";
+            ELSE;
+              "Assigned to ";
+              INCLUDE bug_modal/user.html.tmpl u=bug.assigned_to nick_only=1;
+            END;
+          %]
+        </div>
       [% END %]
       [% IF needinfo.size %]
         <div id="status-needinfo">
 [%# === people === %]
 
 [%
-  unassigned = (bug.assigned_to.login == "nobody@mozilla.org")
-               || (bug.assigned_to.login.search('\.bugs$'));
   sub = [];
   sub.push("Reporter: " _ bug.reporter.moz_nick);
   sub.push(unassigned ? "Unassigned" : "Assigned: " _ bug.assigned_to.moz_nick);
index c74824dade07cb1811119b59ef07363c347361b9..fb17a5a7188cbc02299f0787cf68e829fe77bbff 100644 (file)
@@ -250,10 +250,14 @@ input[type="number"] {
     padding-top: 4px;
 }
 
-#status-needinfo, #status-needinfo .vcard {
+#status-assignee, #status-assignee .vcard, #status-needinfo, #status-needinfo .vcard {
     display: inline;
 }
 
+#status-assignee, #status-needinfo {
+    margin-left: 8px;
+}
+
 #duplicate-container, #duplicate-actions,
 #bottom-duplicate-container, #bottom-duplicate-actions {
     display: table-cell;