From f23daffd7ddec4d359ded338a7033b0e133f71fa Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 17 Sep 2007 16:52:39 +0000 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 --- app/views/documents/_document.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/documents/_document.rhtml b/app/views/documents/_document.rhtml index e1539b828..ddfdb9eec 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 -- 2.39.5