##// END OF EJS Templates
issue list: added 'Priority' column, removed 'Created on' column...
issue list: added 'Priority' column, removed 'Created on' column git-svn-id: http://redmine.rubyforge.org/svn/trunk@211 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r154:220641909ca6
r208:aa91ca0a8d0e
Show More
list_documents.rhtml
12 lines | 525 B | text/html+ruby | RhtmlLexer
<div class="contextual">
<%= link_to_if_authorized l(:label_document_new), {:controller => 'projects', :action => 'add_document', :id => @project}, :class => 'icon icon-add' %>
</div>
<h2><%=l(:label_document_plural)%></h2>
<% if @documents.empty? %><p><i><%= l(:label_no_data) %></i></p><% end %>
<% documents = @documents.group_by {|d| d.category } %>
<% documents.each do |category, docs| %>
<h3><%= category.name %></h3>
<%= render :partial => 'documents/document', :collection => docs %>
<% end %>