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