2015-06-15 18:53:06 -04:00
|
|
|
|
#modal-remove-blob.modal
|
2014-01-01 14:59:45 -05:00
|
|
|
|
.modal-dialog
|
|
|
|
|
.modal-content
|
|
|
|
|
.modal-header
|
|
|
|
|
%a.close{href: "#", "data-dismiss" => "modal"} ×
|
2015-11-17 12:53:56 -05:00
|
|
|
|
%h3.page-title Delete #{@blob.name}
|
2013-11-19 09:14:48 -05:00
|
|
|
|
|
2014-01-01 14:59:45 -05:00
|
|
|
|
.modal-body
|
2015-11-17 12:53:56 -05:00
|
|
|
|
= form_tag namespace_project_blob_path(@project.namespace, @project, @id), method: :delete, class: 'form-horizontal js-replace-blob-form js-requires-input' do
|
|
|
|
|
= render 'shared/new_commit_form', placeholder: "Delete #{@blob.name}"
|
|
|
|
|
|
2014-01-01 14:59:45 -05:00
|
|
|
|
.form-group
|
2015-06-15 18:48:54 -04:00
|
|
|
|
.col-sm-offset-2.col-sm-10
|
2015-11-17 12:53:56 -05:00
|
|
|
|
= button_tag 'Delete file', class: 'btn btn-remove btn-remove-file'
|
2014-01-01 14:59:45 -05:00
|
|
|
|
= link_to "Cancel", '#', class: "btn btn-cancel", "data-dismiss" => "modal"
|
2015-11-17 12:53:56 -05:00
|
|
|
|
|
|
|
|
|
:javascript
|
|
|
|
|
new NewCommitForm($('.js-replace-blob-form'))
|