Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

show.html.erb 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <div class="contextual">
  2. <% if User.current.allowed_to?(:edit_documents, @project) %>
  3. <%= link_to l(:button_edit), edit_document_path(@document), :class => 'icon icon-edit', :accesskey => accesskey(:edit) %>
  4. <% end %>
  5. <% if User.current.allowed_to?(:delete_documents, @project) %>
  6. <%= delete_link document_path(@document) %>
  7. <% end %>
  8. </div>
  9. <h2><%= @document.title %></h2>
  10. <p><em><%= @document.category.name %><br />
  11. <%= format_date @document.created_on %></em></p>
  12. <% if @document.custom_field_values.any? %>
  13. <ul>
  14. <% render_custom_field_values(@document) do |custom_field, formatted| %>
  15. <li><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li>
  16. <% end %>
  17. </ul>
  18. <% end %>
  19. <div class="wiki">
  20. <%= textilizable @document, :description, :attachments => @document.attachments %>
  21. </div>
  22. <h3><%= l(:label_attachment_plural) %></h3>
  23. <%= link_to_attachments @document, :thumbnails => true %>
  24. <% if authorize_for('documents', 'add_attachment') %>
  25. <p><%= link_to l(:label_attachment_new), {}, :onclick => "$('#add_attachment_form').show(); return false;",
  26. :id => 'attach_files_link' %></p>
  27. <%= form_tag({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %>
  28. <div class="box">
  29. <p><%= render :partial => 'attachments/form' %></p>
  30. </div>
  31. <%= submit_tag l(:button_add) %>
  32. <% end %>
  33. <% end %>
  34. <% html_title @document.title -%>