From bd85c0cbb1a0c217da862be31e5ee30fa6716e40 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 4 Jan 2008 17:55:08 +0000 Subject: [PATCH] Fixed: table of content not rendered properly when used in an issue or document description. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1035 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/documents/show.rhtml | 2 ++ app/views/issues/show.rhtml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/views/documents/show.rhtml b/app/views/documents/show.rhtml index 599ac389b..3014387bd 100644 --- a/app/views/documents/show.rhtml +++ b/app/views/documents/show.rhtml @@ -7,7 +7,9 @@

<%=h @document.category.name %>
<%= format_date @document.created_on %>

+
<%= textilizable @document.description, :attachments => @document.attachments %> +

<%= l(:label_attachment_plural) %>

diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml index 006efa3d5..91b638216 100644 --- a/app/views/issues/show.rhtml +++ b/app/views/issues/show.rhtml @@ -64,7 +64,9 @@ end %> <% end %>

<%=l(:field_description)%>

+
<%= textilizable @issue, :description, :attachments => @issue.attachments %> +
<% if @issue.attachments.any? %> <%= link_to_attachments @issue.attachments, :delete_url => (authorize_for('issues', 'destroy_attachment') ? {:controller => 'issues', :action => 'destroy_attachment', :id => @issue} : nil) %> -- 2.39.5