Mercurial > hg > soundsoftware-site
comparison app/views/my/blocks/_documents.html.erb @ 1298:4f746d8966dd redmine_2.3_integration
Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:28:30 +0100 |
parents | 622f24f53b42 |
children |
comparison
equal
deleted
inserted
replaced
1297:0a574315af3e | 1298:4f746d8966dd |
---|---|
1 <h3><%=l(:label_document_plural)%></h3> | 1 <h3><%=l(:label_document_plural)%></h3> |
2 | 2 |
3 <% project_ids = @user.projects.select {|p| @user.allowed_to?(:view_documents, p)}.collect(&:id) %> | 3 <%= render :partial => 'documents/document', :collection => documents_items %> |
4 <%= render(:partial => 'documents/document', | |
5 :collection => Document.find(:all, | |
6 :limit => 10, | |
7 :order => "#{Document.table_name}.created_on DESC", | |
8 :conditions => "#{Document.table_name}.project_id in (#{project_ids.join(',')})", | |
9 :include => [:project])) unless project_ids.empty? %> |