Chris@909:
Chris@909: <%= link_to_if_authorized l(:button_edit), {:controller => 'documents', :action => 'edit', :id => @document}, :class => 'icon icon-edit', :accesskey => accesskey(:edit) %> Chris@909: <%= link_to_if_authorized l(:button_delete), {:controller => 'documents', :action => 'destroy', :id => @document}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> Chris@909:
Chris@909: Chris@909:

<%=h @document.title %>

Chris@909: Chris@909:

<%=h @document.category.name %>
Chris@909: <%= format_date @document.created_on %>

Chris@909:
Chris@909: <%= textilizable @document.description, :attachments => @document.attachments %> Chris@909:
Chris@909: Chris@909:

<%= l(:label_attachment_plural) %>

Chris@909: <%= link_to_attachments @document %> Chris@909: Chris@909: <% if authorize_for('documents', 'add_attachment') %> Chris@909:

<%= link_to l(:label_attachment_new), {}, :onclick => "Element.show('add_attachment_form'); Element.hide(this); Element.scrollTo('add_attachment_form'); return false;", Chris@909: :id => 'attach_files_link' %>

Chris@909: <% form_tag({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %> Chris@909:
Chris@909:

<%= render :partial => 'attachments/form' %>

Chris@909:
Chris@909: <%= submit_tag l(:button_add) %> Chris@909: <% end %> Chris@909: <% end %> Chris@909: Chris@909: <% html_title @document.title -%> Chris@909: Chris@909: <% content_for :header_tags do %> Chris@909: <%= stylesheet_link_tag 'scm' %> Chris@909: <% end %>