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
This commit is contained in:
Jean-Philippe Lang 2008-01-04 17:55:08 +00:00
parent 832c7eaaa5
commit bd85c0cbb1
2 changed files with 4 additions and 0 deletions

View File

@ -7,7 +7,9 @@
<p><em><%=h @document.category.name %><br />
<%= format_date @document.created_on %></em></p>
<div class="wiki">
<%= textilizable @document.description, :attachments => @document.attachments %>
</div>
<br />
<h3><%= l(:label_attachment_plural) %></h3>

View File

@ -64,7 +64,9 @@ end %>
<% end %>
<p><strong><%=l(:field_description)%></strong></p>
<div class="wiki">
<%= textilizable @issue, :description, :attachments => @issue.attachments %>
</div>
<% if @issue.attachments.any? %>
<%= link_to_attachments @issue.attachments, :delete_url => (authorize_for('issues', 'destroy_attachment') ? {:controller => 'issues', :action => 'destroy_attachment', :id => @issue} : nil) %>