76aad9b76e
Make the following changes to deal with new behavior in Rails 4.1.2: * Use nested resources to avoid slashes in arguments to path helpers.
12 lines
639 B
Text
12 lines
639 B
Text
%h3.page-title New file
|
|
.file-editor
|
|
= form_tag(namespace_project_create_blob_path(@project.namespace, @project, @id), method: :post, class: 'form-horizontal form-new-file') do
|
|
= render 'projects/blob/editor', ref: @ref
|
|
= render 'shared/commit_message_container', params: params,
|
|
placeholder: 'Add new file'
|
|
= hidden_field_tag 'content', '', id: 'file-content'
|
|
= render 'projects/commit_button', ref: @ref,
|
|
cancel_path: namespace_project_tree_path(@project.namespace, @project, @id)
|
|
|
|
:javascript
|
|
blob = new NewBlob(gon.relative_url_root + "#{Gitlab::Application.config.assets.prefix}", null)
|