Mercurial > hg > soundsoftware-site
annotate .svn/pristine/cd/cd616cb8a21cd26998b00199d18b19fd0b8aadef.svn-base @ 1327:287f201c2802 redmine-2.2-integration
Add italic
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Wed, 19 Jun 2013 20:56:22 +0100 |
parents | 038ba2d95de8 |
children |
rev | line source |
---|---|
Chris@1296 | 1 <div class="contextual"> |
Chris@1296 | 2 <% if User.current.allowed_to?(:manage_documents, @project) %> |
Chris@1296 | 3 <%= link_to l(:button_edit), edit_document_path(@document), :class => 'icon icon-edit', :accesskey => accesskey(:edit) %> |
Chris@1296 | 4 <%= delete_link document_path(@document) %> |
Chris@1296 | 5 <% end %> |
Chris@1296 | 6 </div> |
Chris@1296 | 7 |
Chris@1296 | 8 <h2><%=h @document.title %></h2> |
Chris@1296 | 9 |
Chris@1296 | 10 <p><em><%=h @document.category.name %><br /> |
Chris@1296 | 11 <%= format_date @document.created_on %></em></p> |
Chris@1296 | 12 <div class="wiki"> |
Chris@1296 | 13 <%= textilizable @document.description, :attachments => @document.attachments %> |
Chris@1296 | 14 </div> |
Chris@1296 | 15 |
Chris@1296 | 16 <h3><%= l(:label_attachment_plural) %></h3> |
Chris@1296 | 17 <%= link_to_attachments @document %> |
Chris@1296 | 18 |
Chris@1296 | 19 <% if authorize_for('documents', 'add_attachment') %> |
Chris@1296 | 20 <p><%= link_to l(:label_attachment_new), {}, :onclick => "$('#add_attachment_form').show(); return false;", |
Chris@1296 | 21 :id => 'attach_files_link' %></p> |
Chris@1296 | 22 <%= form_tag({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %> |
Chris@1296 | 23 <div class="box"> |
Chris@1296 | 24 <p><%= render :partial => 'attachments/form' %></p> |
Chris@1296 | 25 </div> |
Chris@1296 | 26 <%= submit_tag l(:button_add) %> |
Chris@1296 | 27 <% end %> |
Chris@1296 | 28 <% end %> |
Chris@1296 | 29 |
Chris@1296 | 30 <% html_title @document.title -%> |