Chris@0:
Chris@0: <%= link_to_if_authorized l(:label_document_new), Chris@0: {:controller => 'documents', :action => 'new', :project_id => @project}, Chris@0: :class => 'icon icon-add', Chris@0: :onclick => 'Element.show("add-document"); Form.Element.focus("document_title"); return false;' %> Chris@0:
Chris@0: Chris@0: Chris@0: Chris@0:

<%=l(:label_document_plural)%>

Chris@0: Chris@0: <% if @grouped.empty? %>

<%= l(:label_no_data) %>

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

<%= group %>

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

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

Chris@0: <% form_tag({}, :method => :get) do %> Chris@0:
Chris@0:
Chris@0:
Chris@0: Chris@0: <% end %> Chris@0: <% end %> Chris@0: Chris@0: <% html_title(l(:label_document_plural)) -%>