From f23daffd7ddec4d359ded338a7033b0e133f71fa 2007-09-17 16:52:39 From: Jean-Philippe Lang Date: 2007-09-17 16:52:39 Subject: [PATCH] Fixed: error on document list with a document without description. git-svn-id: http://redmine.rubyforge.org/svn/trunk@740 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/documents/_document.rhtml b/app/views/documents/_document.rhtml index e1539b8..ddfdb9e 100644 --- a/app/views/documents/_document.rhtml +++ b/app/views/documents/_document.rhtml @@ -1,3 +1,3 @@

<%= link_to h(document.title), :controller => 'documents', :action => 'show', :id => document %>
-<% unless document.description.empty? %><%=h(truncate(document.description, 250)) %>
<% end %> +<% unless document.description.blank? %><%=h(truncate(document.description, 250)) %>
<% end %> <%= format_time(document.created_on) %>

\ No newline at end of file