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