2015-09-11 14:41:01 +05:30
|
|
|
|
#modal-remove-blob.modal
|
2014-09-02 18:07:02 +05:30
|
|
|
|
.modal-dialog
|
|
|
|
|
.modal-content
|
|
|
|
|
.modal-header
|
|
|
|
|
%a.close{href: "#", "data-dismiss" => "modal"} ×
|
2015-11-26 14:37:03 +05:30
|
|
|
|
%h3.page-title Delete #{@blob.name}
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
|
|
.modal-body
|
2016-06-02 11:05:42 +05:30
|
|
|
|
= form_tag namespace_project_blob_path(@project.namespace, @project, @id), method: :delete, class: 'form-horizontal js-replace-blob-form js-quick-submit js-requires-input' do
|
2015-11-26 14:37:03 +05:30
|
|
|
|
= render 'shared/new_commit_form', placeholder: "Delete #{@blob.name}"
|
|
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
|
.form-group
|
2015-09-11 14:41:01 +05:30
|
|
|
|
.col-sm-offset-2.col-sm-10
|
2015-11-26 14:37:03 +05:30
|
|
|
|
= button_tag 'Delete file', class: 'btn btn-remove btn-remove-file'
|
2014-09-02 18:07:02 +05:30
|
|
|
|
= link_to "Cancel", '#', class: "btn btn-cancel", "data-dismiss" => "modal"
|
2015-11-26 14:37:03 +05:30
|
|
|
|
|
|
|
|
|
:javascript
|
|
|
|
|
new NewCommitForm($('.js-replace-blob-form'))
|