From: Jean-Philippe Lang Date: Fri, 4 Jan 2008 17:55:08 +0000 (+0000) Subject: Fixed: table of content not rendered properly when used in an issue or document descr... X-Git-Tag: 0.7.0-RC1~241 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bd85c0cbb1a0c217da862be31e5ee30fa6716e40;p=redmine.git 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 --- 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) %>