To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / documents / show.html.erb @ 912:5e80956cc792
History | View | Annotate | Download (1.42 KB)
| 1 | 0:513646585e45 | Chris | <div class="contextual"> |
|---|---|---|---|
| 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' %>
|
||
| 4 | </div>
|
||
| 5 | |||
| 6 | <h2><%=h @document.title %></h2> |
||
| 7 | |||
| 8 | <p><em><%=h @document.category.name %><br /> |
||
| 9 | <%= format_date @document.created_on %></em></p> |
||
| 10 | <div class="wiki"> |
||
| 11 | <%= textilizable @document.description, :attachments => @document.attachments %>
|
||
| 12 | </div>
|
||
| 13 | |||
| 14 | <h3><%= l(:label_attachment_plural) %></h3> |
||
| 15 | <%= link_to_attachments @document %>
|
||
| 16 | |||
| 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;", |
||
| 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 %>
|
||
| 21 | <div class="box"> |
||
| 22 | <p><%= render :partial => 'attachments/form' %></p> |
||
| 23 | </div>
|
||
| 24 | <%= submit_tag l(:button_add) %>
|
||
| 25 | 909:cbb26bc654de | Chris | <% end %>
|
| 26 | 0:513646585e45 | Chris | <% end %>
|
| 27 | |||
| 28 | <% html_title @document.title -%>
|
||
| 29 | |||
| 30 | <% content_for :header_tags do %>
|
||
| 31 | <%= stylesheet_link_tag 'scm' %>
|
||
| 32 | <% end %> |