<%= link_to_if_authorized l(:label_document_new), {:controller => 'documents', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %>

<%=l(:label_document_plural)%>

<% if @grouped.empty? %>

<%= l(:label_no_data) %>

<% end %> <% @grouped.keys.sort.each do |group| %>

<%= group %>

<%= render :partial => 'documents/document', :collection => @grouped[group] %> <% end %> <% content_for :sidebar do %>

<%= l(:label_sort_by, '') %>

<%= form_tag({}, :method => :get) do %>


<% end %> <% end %> <% html_title(l(:label_document_plural)) -%>