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.
22 lines
849 B
Text
22 lines
849 B
Text
#modal-remove-blob.modal.hide
|
||
.modal-dialog
|
||
.modal-content
|
||
.modal-header
|
||
%a.close{href: "#", "data-dismiss" => "modal"} ×
|
||
%h3.page-title Remove #{@blob.name}
|
||
%p.light
|
||
From branch
|
||
%strong= @ref
|
||
|
||
.modal-body
|
||
= form_tag namespace_project_blob_path(@project.namespace, @project, @id), method: :delete, class: 'form-horizontal' do
|
||
= render 'shared/commit_message_container', params: params,
|
||
placeholder: 'Removed this file because...'
|
||
.form-group
|
||
.col-sm-2
|
||
.col-sm-10
|
||
= button_tag 'Remove file', class: 'btn btn-remove btn-remove-file'
|
||
= link_to "Cancel", '#', class: "btn btn-cancel", "data-dismiss" => "modal"
|
||
|
||
:javascript
|
||
disableButtonIfEmptyField('#commit_message', '.btn-remove-file')
|