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