annotate .svn/pristine/ee/ee5ec163eec949632bfb3e808c14256c46585837.svn-base @ 1327:287f201c2802 redmine-2.2-integration

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