diff options
author | Matt McHenry <mozilla@matt.mchenryfamily.org> | 2010-06-22 04:30:36 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-06-22 04:30:36 +0200 |
commit | b25ce729062f54cc0520eecffc97e775ce75ab3c (patch) | |
tree | 3ab8fdcbb523e14b12cdfaac71d8dde348f8f58e | |
parent | e3fd496e1ecc34f3db4c9415cf0ad387d56c6066 (diff) | |
download | bugzilla-b25ce729062f54cc0520eecffc97e775ce75ab3c.tar.gz bugzilla-b25ce729062f54cc0520eecffc97e775ce75ab3c.tar.xz |
Bug 398473: User preference for the position of the comment box
r=mkanat, a=mkanat
-rw-r--r-- | Bugzilla/Install.pm | 3 | ||||
-rw-r--r-- | template/en/default/bug/edit.html.tmpl | 9 | ||||
-rw-r--r-- | template/en/default/global/setting-descs.none.tmpl | 3 |
3 files changed, 14 insertions, 1 deletions
diff --git a/Bugzilla/Install.pm b/Bugzilla/Install.pm index 9c798ceb9..e90fe41db 100644 --- a/Bugzilla/Install.pm +++ b/Bugzilla/Install.pm @@ -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' }, } diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index d9342a93c..479e67c1e 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -218,7 +218,9 @@ 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 %] @@ -233,6 +235,11 @@ %] </div> + [% IF user.settings.comment_box_position.value == 'after_comments' %] + <hr> + [% PROCESS comment_box %] + [% END %] + </form> [%############################################################################%] diff --git a/template/en/default/global/setting-descs.none.tmpl b/template/en/default/global/setting-descs.none.tmpl index 661334c38..e96e3169d 100644 --- a/template/en/default/global/setting-descs.none.tmpl +++ b/template/en/default/global/setting-descs.none.tmpl @@ -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", } |