OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/views/my_projects_overviews/blocks/_documents.html.erb

17 lines
563 B

<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Foundation (OPF)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<h3><%=l(:label_document_plural)%></h3>
<% if @user.allowed_to?(:view_documents, @project)%>
<%= render(:partial => 'documents/document',
:collection => Document.where(project_id: @project.id).limit(10).order("created_on DESC")) %>
<% end %>