@@ -1,28 +1,32 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 2 | <%= link_to_if_authorized l(:button_edit), {:controller => 'documents', :action => 'edit', :id => @document}, :class => 'icon icon-edit', :accesskey => accesskey(:edit) %> |
|
3 | 3 | <%= 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' %> |
|
4 | 4 | </div> |
|
5 | 5 | |
|
6 | 6 | <h2><%=h @document.title %></h2> |
|
7 | 7 | |
|
8 | 8 | <p><em><%=h @document.category.name %><br /> |
|
9 | 9 | <%= format_date @document.created_on %></em></p> |
|
10 | 10 | <div class="wiki"> |
|
11 | 11 | <%= textilizable @document.description, :attachments => @document.attachments %> |
|
12 | 12 | </div> |
|
13 | 13 | |
|
14 | 14 | <h3><%= l(:label_attachment_plural) %></h3> |
|
15 | 15 | <%= link_to_attachments @document %> |
|
16 | 16 | |
|
17 | 17 | <% if authorize_for('documents', 'add_attachment') %> |
|
18 | 18 | <p><%= link_to l(:label_attachment_new), {}, :onclick => "Element.show('add_attachment_form'); Element.hide(this); Element.scrollTo('add_attachment_form'); return false;", |
|
19 | 19 | :id => 'attach_files_link' %></p> |
|
20 | 20 | <% form_tag({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %> |
|
21 | 21 | <div class="box"> |
|
22 | 22 | <p><%= render :partial => 'attachments/form' %></p> |
|
23 | 23 | </div> |
|
24 | 24 | <%= submit_tag l(:button_add) %> |
|
25 | 25 | <% end %> |
|
26 | 26 | <% end %> |
|
27 | 27 | |
|
28 | 28 | <% html_title @document.title -%> |
|
29 | ||
|
30 | <% content_for :header_tags do %> | |
|
31 | <%= stylesheet_link_tag 'scm' %> | |
|
32 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now