diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-04-09 09:39:59 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-04-09 09:39:59 +0000 |
commit | 3bfc5e42da61f742c5f781638cb8818ab2e5ba1e (patch) | |
tree | 90e5949ba12a9f4f0d71b83e472af0ceedb82ce2 /app/views/news/show.html.erb | |
parent | d3b70f5eb9109061f935b975eba2efdce8ead580 (diff) | |
download | redmine-3bfc5e42da61f742c5f781638cb8818ab2e5ba1e.tar.gz redmine-3bfc5e42da61f742c5f781638cb8818ab2e5ba1e.zip |
For 3 comments or more, show reply link at top of comments as well (#24089).
Patch by Jan Schulz-Hofen.
git-svn-id: http://svn.redmine.org/redmine/trunk@16539 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/news/show.html.erb')
-rw-r--r-- | app/views/news/show.html.erb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/news/show.html.erb b/app/views/news/show.html.erb index 2178e1c14..09e14f61f 100644 --- a/app/views/news/show.html.erb +++ b/app/views/news/show.html.erb @@ -33,6 +33,9 @@ <div id="comments" style="margin-bottom:16px;"> <h3 class="comments"><%= l(:label_comment_plural) %></h3> +<% if @news.commentable? && @comments.size >= 3 %> + <p><%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments", :scroll => "comment_comments" %></p> +<% end %> <% @comments.each do |comment| %> <% next if comment.new_record? %> <div class="contextual"> |