annotate .svn/pristine/cd/cd616cb8a21cd26998b00199d18b19fd0b8aadef.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 <% if User.current.allowed_to?(:manage_documents, @project) %>
Chris@1295 3 <%= link_to l(:button_edit), edit_document_path(@document), :class => 'icon icon-edit', :accesskey => accesskey(:edit) %>
Chris@1295 4 <%= delete_link document_path(@document) %>
Chris@1295 5 <% end %>
Chris@1295 6 </div>
Chris@1295 7
Chris@1295 8 <h2><%=h @document.title %></h2>
Chris@1295 9
Chris@1295 10 <p><em><%=h @document.category.name %><br />
Chris@1295 11 <%= format_date @document.created_on %></em></p>
Chris@1295 12 <div class="wiki">
Chris@1295 13 <%= textilizable @document.description, :attachments => @document.attachments %>
Chris@1295 14 </div>
Chris@1295 15
Chris@1295 16 <h3><%= l(:label_attachment_plural) %></h3>
Chris@1295 17 <%= link_to_attachments @document %>
Chris@1295 18
Chris@1295 19 <% if authorize_for('documents', 'add_attachment') %>
Chris@1295 20 <p><%= link_to l(:label_attachment_new), {}, :onclick => "$('#add_attachment_form').show(); return false;",
Chris@1295 21 :id => 'attach_files_link' %></p>
Chris@1295 22 <%= form_tag({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %>
Chris@1295 23 <div class="box">
Chris@1295 24 <p><%= render :partial => 'attachments/form' %></p>
Chris@1295 25 </div>
Chris@1295 26 <%= submit_tag l(:button_add) %>
Chris@1295 27 <% end %>
Chris@1295 28 <% end %>
Chris@1295 29
Chris@1295 30 <% html_title @document.title -%>