]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 398473: User preference for the position of the comment box
authorMatt McHenry <mozilla@matt.mchenryfamily.org>
Tue, 22 Jun 2010 02:30:36 +0000 (19:30 -0700)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 22 Jun 2010 02:30:36 +0000 (19:30 -0700)
r=mkanat, a=mkanat

Bugzilla/Install.pm
template/en/default/bug/edit.html.tmpl
template/en/default/global/setting-descs.none.tmpl

index 9c798ceb956fd7249f85b6f42732ef8c812e901f..e90fe41dba4d8c4f208849e7dcb17bb0f9035a6a 100644 (file)
@@ -65,6 +65,9 @@ sub SETTINGS {
     # 2007-07-02 altlist@gmail.com -- Bug 225731
     quote_replies      => { options => ['quoted_reply', 'simple_reply', 'off'],
                             default => "quoted_reply" },
+    # 2009-02-01 mozilla@matt.mchenryfamily.org -- Bug 398473
+    comment_box_position => { options => ['before_comments', 'after_comments'],
+                              default => 'before_comments' },
     # 2008-08-27 LpSolit@gmail.com -- Bug 182238
     timezone           => { subclass => 'Timezone', default => 'local' },
     }
index d9342a93c2761ee5356b68a68c89d7d1b35f7845..479e67c1e8776289d9fb25135de58d99f59aac1c 100644 (file)
                show_attachment_flags = bug.show_attachment_flags
     %]
 
-    [% PROCESS comment_box %]
+    [% IF user.settings.comment_box_position.value == 'before_comments' %]
+      [% PROCESS comment_box %]
+    [% END %]
   </td>
   <td>
     [% PROCESS section_restrict_visibility %]
     %]
   </div>
 
+  [% IF user.settings.comment_box_position.value == 'after_comments' %]
+    <hr>
+    [% PROCESS comment_box %]
+  [% END %]        
+
 </form>
 
 [%############################################################################%]
index 661334c38deb57f97c638080f5aafc695dbb7acc..e96e3169d29333e3ea81bbc9ffd900a10c866f2f 100644 (file)
@@ -43,6 +43,9 @@
    "quote_replies"                    => "Quote the associated comment when you click on its reply link",
    "quoted_reply"                     => "Quote the full comment",
    "simple_reply"                     => "Reference the comment number only",
+   "comment_box_position"             => "Position of the Additional Comments box",
+   "before_comments"                  => "Before other comments",
+   "after_comments"                   => "After other comments",
    "timezone"                         => "Timezone used to display dates and times",
    "local"                            => "Same as the server",
                    }