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