Mercurial > hg > soundsoftware-site
comparison app/views/documents/.svn/text-base/show.rhtml.svn-base @ 0:513646585e45
* Import Redmine trunk SVN rev 3859
author | Chris Cannam |
---|---|
date | Fri, 23 Jul 2010 15:52:44 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:513646585e45 |
---|---|
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) %> | |
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 <% end %> | |
26 <% end %> | |
27 | |
28 <% html_title @document.title -%> | |
29 | |
30 <% content_for :header_tags do %> | |
31 <%= stylesheet_link_tag 'scm' %> | |
32 <% end %> |