<%=l(:label_document_plural)%>
<% documents = @documents.group_by {|d| d.category } %>
<% documents.each do |category, docs| %>
<%= category.name %>
<% docs.each do |d| %>
-
<%= link_to d.title, :controller => 'documents', :action => 'show', :id => d %>
<%=l(:field_description)%>: <%= d.description %>
<%= format_time(d.created_on) %>
<% end %>
<% end %>
<%= link_to_if_authorized '» ' + l(:label_document_new), :controller => 'projects', :action => 'add_document', :id => @project %>