From a0f83e42e42066a6b9b148f4bbc88b8ca26f7562 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 6 Jun 2008 15:14:09 +0000 Subject: [PATCH] Hides the "Replies" heading below a message if there is no reply (#1350). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1495 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/messages/show.rhtml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/messages/show.rhtml b/app/views/messages/show.rhtml index 251b7c7a..c04c4093 100644 --- a/app/views/messages/show.rhtml +++ b/app/views/messages/show.rhtml @@ -17,6 +17,7 @@
+<% unless @replies.empty? %>

<%= l(:label_reply_plural) %>

<% @replies.each do |message| %> "> @@ -30,6 +31,7 @@ <%= link_to_attachments message.attachments, :no_author => true %> <% end %> +<% end %> <% if !@topic.locked? && authorize_for('messages', 'reply') %>

<%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %>