##// END OF EJS Templates
Show thumbnails on documents (#22941)....
Jean-Philippe Lang -
r15223:ea89cc6e7e4b
parent child
Show More
@@ -1,41 +1,41
1 1 <div class="contextual">
2 2 <% if User.current.allowed_to?(:edit_documents, @project) %>
3 3 <%= link_to l(:button_edit), edit_document_path(@document), :class => 'icon icon-edit', :accesskey => accesskey(:edit) %>
4 4 <% end %>
5 5 <% if User.current.allowed_to?(:delete_documents, @project) %>
6 6 <%= delete_link document_path(@document) %>
7 7 <% end %>
8 8 </div>
9 9
10 10 <h2><%= @document.title %></h2>
11 11
12 12 <p><em><%= @document.category.name %><br />
13 13 <%= format_date @document.created_on %></em></p>
14 14
15 15 <% if @document.custom_field_values.any? %>
16 16 <ul>
17 17 <% render_custom_field_values(@document) do |custom_field, formatted| %>
18 18 <li><span class="label"><%= custom_field.name %>:</span> <%= formatted %></li>
19 19 <% end %>
20 20 </ul>
21 21 <% end %>
22 22
23 23 <div class="wiki">
24 24 <%= textilizable @document, :description, :attachments => @document.attachments %>
25 25 </div>
26 26
27 27 <h3><%= l(:label_attachment_plural) %></h3>
28 <%= link_to_attachments @document %>
28 <%= link_to_attachments @document, :thumbnails => true %>
29 29
30 30 <% if authorize_for('documents', 'add_attachment') %>
31 31 <p><%= link_to l(:label_attachment_new), {}, :onclick => "$('#add_attachment_form').show(); return false;",
32 32 :id => 'attach_files_link' %></p>
33 33 <%= form_tag({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %>
34 34 <div class="box">
35 35 <p><%= render :partial => 'attachments/form' %></p>
36 36 </div>
37 37 <%= submit_tag l(:button_add) %>
38 38 <% end %>
39 39 <% end %>
40 40
41 41 <% html_title @document.title -%>
General Comments 0
You need to be logged in to leave comments. Login now