summaryrefslogtreecommitdiffstats
path: root/app/views/messages/show.rhtml
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-06-06 15:14:09 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-06-06 15:14:09 +0000
commita0f83e42e42066a6b9b148f4bbc88b8ca26f7562 (patch)
tree0894395910126f9e2f3b4cf5bc583a108949c2e2 /app/views/messages/show.rhtml
parent8aa57058cf0eafdf4fe02f4ab9e4ceb2d2d6d23b (diff)
downloadredmine-a0f83e42e42066a6b9b148f4bbc88b8ca26f7562.tar.gz
redmine-a0f83e42e42066a6b9b148f4bbc88b8ca26f7562.zip
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
Diffstat (limited to 'app/views/messages/show.rhtml')
-rw-r--r--app/views/messages/show.rhtml2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/messages/show.rhtml b/app/views/messages/show.rhtml
index 251b7c7a5..c04c40934 100644
--- a/app/views/messages/show.rhtml
+++ b/app/views/messages/show.rhtml
@@ -17,6 +17,7 @@
</div>
<br />
+<% unless @replies.empty? %>
<h3 class="icon22 icon22-comment"><%= l(:label_reply_plural) %></h3>
<% @replies.each do |message| %>
<a name="<%= "message-#{message.id}" %>"></a>
@@ -30,6 +31,7 @@
<%= link_to_attachments message.attachments, :no_author => true %>
</div>
<% end %>
+<% end %>
<% if !@topic.locked? && authorize_for('messages', 'reply') %>
<p><%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %></p>