Feature #12401 » documents.show.html.erb.patch
/var/www/redmine/app/views/documents/show.html.erb~ 2012-11-17 07:35:40.772858327 +0000 | ||
---|---|---|
1 | 1 |
<div class="contextual"> |
2 |
<% if User.current.allowed_to?(:manage_documents, @project) %>
|
|
2 |
<% if User.current.allowed_to?(:edit_documents, @project) %>
|
|
3 | 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 | 6 |
<%= delete_link document_path(@document) %> |
5 | 7 |
<% end %> |
6 | 8 |
</div> |