annotate .svn/pristine/2f/2ff7c4a24ae3be5225189f1a6fd5fd0c91104ce3.svn-base @ 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
rev   line source
Chris@1295 1 <div class="contextual">
Chris@1295 2 <%= link_to l(:label_document_new), new_project_document_path(@project), :class => 'icon icon-add',
Chris@1295 3 :onclick => 'showAndScrollTo("add-document", "document_title"); return false;' if User.current.allowed_to?(:add_documents, @project) %>
Chris@1295 4 </div>
Chris@1295 5
Chris@1295 6 <div id="add-document" style="display:none;">
Chris@1295 7 <h2><%=l(:label_document_new)%></h2>
Chris@1295 8 <%= labelled_form_for @document, :url => project_documents_path(@project), :html => {:multipart => true} do |f| %>
Chris@1295 9 <%= render :partial => 'form', :locals => {:f => f} %>
Chris@1295 10 <p>
Chris@1295 11 <%= submit_tag l(:button_create) %>
Chris@1295 12 <%= link_to l(:button_cancel), "#", :onclick => '$("#add-document").hide(); return false;' %>
Chris@1295 13 </p>
Chris@1295 14 <% end %>
Chris@1295 15 </div>
Chris@1295 16
Chris@1295 17 <h2><%=l(:label_document_plural)%></h2>
Chris@1295 18
Chris@1295 19 <% if @grouped.empty? %><p class="nodata"><%= l(:label_no_data) %></p><% end %>
Chris@1295 20
Chris@1295 21 <% @grouped.keys.sort.each do |group| %>
Chris@1295 22 <h3><%= group %></h3>
Chris@1295 23 <%= render :partial => 'documents/document', :collection => @grouped[group] %>
Chris@1295 24 <% end %>
Chris@1295 25
Chris@1295 26 <% content_for :sidebar do %>
Chris@1295 27 <h3><%= l(:label_sort_by, '') %></h3>
Chris@1295 28 <%= link_to l(:field_category), {:sort_by => 'category'}, :class => (@sort_by == 'category' ? 'selected' :nil) %><br />
Chris@1295 29 <%= link_to l(:label_date), {:sort_by => 'date'}, :class => (@sort_by == 'date' ? 'selected' :nil) %><br />
Chris@1295 30 <%= link_to l(:field_title), {:sort_by => 'title'}, :class => (@sort_by == 'title' ? 'selected' :nil) %><br />
Chris@1295 31 <%= link_to l(:field_author), {:sort_by => 'author'}, :class => (@sort_by == 'author' ? 'selected' :nil) %>
Chris@1295 32 <% end %>
Chris@1295 33
Chris@1295 34 <% html_title(l(:label_document_plural)) -%>