summaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorGuy Pyrzak <guy.pyrzak@gmail.com>2010-09-19 01:20:02 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2010-09-19 01:20:02 +0200
commitf1d9113d83214ba08069f695ba176dec90a0d770 (patch)
tree5750bd801540c7a9d208061e5a354de31c1d7da7 /template/en
parent397a12d4236741f5f3db4eafee28d187156da24d (diff)
downloadbugzilla-f1d9113d83214ba08069f695ba176dec90a0d770.tar.gz
bugzilla-f1d9113d83214ba08069f695ba176dec90a0d770.tar.xz
Bug 574338: When comment box is positioned at [top|bottom], include "Add Comment" link at [bottom|top]
r/a=mkanat
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/bug/comments.html.tmpl13
1 files changed, 13 insertions, 0 deletions
diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl
index e44e4e7b9..9a7a050af 100644
--- a/template/en/default/bug/comments.html.tmpl
+++ b/template/en/default/bug/comments.html.tmpl
@@ -65,6 +65,14 @@
[% count = count + increment %]
[% END %]
+[% IF user.settings.comment_box_position.value == "before_comments" && user.id %]
+ <div class="bz_add_comment">
+ <a href="#"
+ onclick="return goto_add_comments();">
+ Add Comment</a>
+ </div>
+[% END %]
+
[%# Note: this template is used in multiple places; if you use this hook,
# make sure you are aware of this fact.
#%]
@@ -78,6 +86,11 @@
return false;">Collapse All Comments</a></li>
<li><a href="#" onclick="toggle_all_comments('expand', [% comments.size %]);
return false;">Expand All Comments</a></li>
+ [% IF user.settings.comment_box_position.value == "after_comments" && user.id %]
+ <li class="bz_add_comment"><a href="#"
+ onclick="return goto_add_comments('bug_status_bottom');">
+ Add Comment</a></li>
+ [% END %]
</ul>
[% END %]
</td>