Adds text formatting to documents index (#202).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3602 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2010-03-18 20:02:17 +00:00
parent b5d9a1dfbd
commit 4dd4300147
2 changed files with 16 additions and 3 deletions
+6 -3
View File
@@ -1,3 +1,6 @@
<p><%= link_to h(document.title), :controller => 'documents', :action => 'show', :id => document %><br />
<% unless document.description.blank? %><%=h(truncate(document.description, :length => 250)) %><br /><% end %>
<em><%= format_time(document.updated_on) %></em></p>
<h4><%= link_to h(document.title), :controller => 'documents', :action => 'show', :id => document %></h4>
<p><em><%= format_time(document.updated_on) %></em></p>
<div class="wiki">
<%= textilizable(truncate_lines(document.description)) %>
</div>