Mercurial > hg > soundsoftware-site
comparison app/views/documents/show.html.erb @ 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 |
comparison
equal
deleted
inserted
replaced
1297:0a574315af3e | 1298:4f746d8966dd |
---|---|
1 <div class="contextual"> | 1 <div class="contextual"> |
2 <% if User.current.allowed_to?(:manage_documents, @project) %> | 2 <% if User.current.allowed_to?(:edit_documents, @project) %> |
3 <%= link_to l(:button_edit), edit_document_path(@document), :class => 'icon icon-edit', :accesskey => accesskey(:edit) %> | 3 <%= link_to l(:button_edit), edit_document_path(@document), :class => 'icon icon-edit', :accesskey => accesskey(:edit) %> |
4 <% end %> | |
5 <% if User.current.allowed_to?(:delete_documents, @project) %> | |
4 <%= delete_link document_path(@document) %> | 6 <%= delete_link document_path(@document) %> |
5 <% end %> | 7 <% end %> |
6 </div> | 8 </div> |
7 | 9 |
8 <h2><%=h @document.title %></h2> | 10 <h2><%=h @document.title %></h2> |
9 | 11 |
10 <p><em><%=h @document.category.name %><br /> | 12 <p><em><%=h @document.category.name %><br /> |
11 <%= format_date @document.created_on %></em></p> | 13 <%= format_date @document.created_on %></em></p> |
12 <div class="wiki"> | 14 <div class="wiki"> |
13 <%= textilizable @document.description, :attachments => @document.attachments %> | 15 <%= textilizable @document, :description, :attachments => @document.attachments %> |
14 </div> | 16 </div> |
15 | 17 |
16 <h3><%= l(:label_attachment_plural) %></h3> | 18 <h3><%= l(:label_attachment_plural) %></h3> |
17 <%= link_to_attachments @document %> | 19 <%= link_to_attachments @document %> |
18 | 20 |