summaryrefslogtreecommitdiffstats
path: root/app/views/news
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-05 15:41:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-05 15:41:54 +0000
commite951d8458413f02ba613163df862d1a352ed3692 (patch)
treec9f1ec441a1243ffa35bb35ba5865588c710b20e /app/views/news
parentbbe8ea29e8d3e6de60b96c08d60de9447bcceca9 (diff)
downloadredmine-e951d8458413f02ba613163df862d1a352ed3692.tar.gz
redmine-e951d8458413f02ba613163df862d1a352ed3692.zip
Add a user preference to choose how comments/replies are displayed: in chronological or reverse chronological order (#589, #776).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1197 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/news')
-rw-r--r--app/views/news/show.rhtml9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/views/news/show.rhtml b/app/views/news/show.rhtml
index cc9eed043..6de8aa86e 100644
--- a/app/views/news/show.rhtml
+++ b/app/views/news/show.rhtml
@@ -34,14 +34,15 @@
<div id="comments" style="margin-bottom:16px;">
<h3 class="icon22 icon22-comment"><%= l(:label_comment_plural) %></h3>
-<% @news.comments.each do |comment| %>
+<% @comments.each do |comment| %>
<% next if comment.new_record? %>
- <h4><%= authoring comment.created_on, comment.author %></h4>
<div class="contextual">
- <%= link_to_if_authorized l(:button_delete), {:controller => 'news', :action => 'destroy_comment', :id => @news, :comment_id => comment}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
+ <%= link_to_if_authorized image_tag('delete.png'), {:controller => 'news', :action => 'destroy_comment', :id => @news, :comment_id => comment},
+ :confirm => l(:text_are_you_sure), :method => :post, :title => l(:button_delete) %>
</div>
+ <h4><%= authoring comment.created_on, comment.author %></h4>
<%= textilizable(comment.comments) %>
-<% end if @news.comments_count > 0 %>
+<% end if @comments.any? %>
</div>
<% if authorize_for 'news', 'add_comment' %>