From c058bc224549c82faa4771673a2126ebfe19ccf3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 19 Oct 2010 19:26:07 +0000 Subject: [PATCH] Remove the Description label from the issue view and omit the block if empty (#6677). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4264 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/show.rhtml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml index d1d93da9a..9d0f2257a 100644 --- a/app/views/issues/show.rhtml +++ b/app/views/issues/show.rhtml @@ -44,18 +44,19 @@ <%= render_custom_fields_rows(@issue) %> <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %> -
+<% if @issue.description? || @issue.attachments.any? -%> +
-<%= link_to_remote_if_authorized(l(:button_quote), { :url => {:action => 'reply', :id => @issue} }, :class => 'icon icon-comment') unless @issue.description.blank? %> +<%= link_to_remote_if_authorized(l(:button_quote), { :url => {:action => 'reply', :id => @issue} }, :class => 'icon icon-comment') if @issue.description? %>
-

<%=l(:field_description)%>

<%= textilizable @issue, :description, :attachments => @issue.attachments %>
<%= link_to_attachments @issue %> +<% end -%> <%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %>