debian-mirror-gitlab/app/views/projects/blob/_remove.html.haml

19 lines
744 B
Text
Raw Normal View History

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
2015-11-26 14:37:03 +05:30
= 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-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'))