comparison app/views/documents/index.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 <%= link_to l(:label_document_new), new_project_document_path(@project), :class => 'icon icon-add', 2 <%= link_to l(:label_document_new), new_project_document_path(@project), :class => 'icon icon-add',
3 :onclick => 'showAndScrollTo("add-document", "document_title"); return false;' if User.current.allowed_to?(:manage_documents, @project) %> 3 :onclick => 'showAndScrollTo("add-document", "document_title"); return false;' if User.current.allowed_to?(:add_documents, @project) %>
4 </div> 4 </div>
5 5
6 <div id="add-document" style="display:none;"> 6 <div id="add-document" style="display:none;">
7 <h2><%=l(:label_document_new)%></h2> 7 <h2><%=l(:label_document_new)%></h2>
8 <%= labelled_form_for @document, :url => project_documents_path(@project), :html => {:multipart => true} do |f| %> 8 <%= labelled_form_for @document, :url => project_documents_path(@project), :html => {:multipart => true} do |f| %>