annotate .svn/pristine/5a/5a549df68d552afbb24a2891641ac0c3cca19477.svn-base @ 1298:4f746d8966dd
redmine_2.3_integration
Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author |
Chris Cannam |
date |
Fri, 14 Jun 2013 09:28:30 +0100 |
parents |
622f24f53b42 |
children |
|
rev |
line source |
Chris@1295
|
1 <div class="contextual">
|
Chris@1295
|
2 <% if User.current.allowed_to?(:edit_documents, @project) %>
|
Chris@1295
|
3 <%= link_to l(:button_edit), edit_document_path(@document), :class => 'icon icon-edit', :accesskey => accesskey(:edit) %>
|
Chris@1295
|
4 <% end %>
|
Chris@1295
|
5 <% if User.current.allowed_to?(:delete_documents, @project) %>
|
Chris@1295
|
6 <%= delete_link document_path(@document) %>
|
Chris@1295
|
7 <% end %>
|
Chris@1295
|
8 </div>
|
Chris@1295
|
9
|
Chris@1295
|
10 <h2><%=h @document.title %></h2>
|
Chris@1295
|
11
|
Chris@1295
|
12 <p><em><%=h @document.category.name %><br />
|
Chris@1295
|
13 <%= format_date @document.created_on %></em></p>
|
Chris@1295
|
14 <div class="wiki">
|
Chris@1295
|
15 <%= textilizable @document, :description, :attachments => @document.attachments %>
|
Chris@1295
|
16 </div>
|
Chris@1295
|
17
|
Chris@1295
|
18 <h3><%= l(:label_attachment_plural) %></h3>
|
Chris@1295
|
19 <%= link_to_attachments @document %>
|
Chris@1295
|
20
|
Chris@1295
|
21 <% if authorize_for('documents', 'add_attachment') %>
|
Chris@1295
|
22 <p><%= link_to l(:label_attachment_new), {}, :onclick => "$('#add_attachment_form').show(); return false;",
|
Chris@1295
|
23 :id => 'attach_files_link' %></p>
|
Chris@1295
|
24 <%= form_tag({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %>
|
Chris@1295
|
25 <div class="box">
|
Chris@1295
|
26 <p><%= render :partial => 'attachments/form' %></p>
|
Chris@1295
|
27 </div>
|
Chris@1295
|
28 <%= submit_tag l(:button_add) %>
|
Chris@1295
|
29 <% end %>
|
Chris@1295
|
30 <% end %>
|
Chris@1295
|
31
|
Chris@1295
|
32 <% html_title @document.title -%>
|