2015-09-25 12:07:36 +05:30
|
|
|
|
#modal-upload-blob.modal
|
2018-03-17 18:26:18 +05:30
|
|
|
|
.modal-dialog.modal-lg
|
2015-09-25 12:07:36 +05:30
|
|
|
|
.modal-content
|
|
|
|
|
.modal-header
|
2017-08-17 22:00:37 +05:30
|
|
|
|
%a.close{ href: "#", "data-dismiss" => "modal" } ×
|
|
|
|
|
%h3.page-title= title
|
2015-09-25 12:07:36 +05:30
|
|
|
|
.modal-body
|
2017-08-17 22:00:37 +05:30
|
|
|
|
= form_tag form_path, method: method, class: 'js-quick-submit js-upload-blob-form form-horizontal', data: { method: method } do
|
2015-09-25 12:07:36 +05:30
|
|
|
|
.dropzone
|
|
|
|
|
.dropzone-previews.blob-upload-dropzone-previews
|
|
|
|
|
%p.dz-message.light
|
2017-09-10 17:25:29 +05:30
|
|
|
|
- upload_link = link_to s_('UploadLink|click to upload'), '#', class: "markdown-selector"
|
|
|
|
|
- dropzone_text = _('Attach a file by drag & drop or %{upload_link}') % { upload_link: upload_link }
|
|
|
|
|
#{ dropzone_text.html_safe }
|
|
|
|
|
|
2015-09-25 12:07:36 +05:30
|
|
|
|
%br
|
2017-08-17 22:00:37 +05:30
|
|
|
|
.dropzone-alerts.alert.alert-danger.data{ style: "display:none" }
|
2015-11-26 14:37:03 +05:30
|
|
|
|
|
|
|
|
|
= render 'shared/new_commit_form', placeholder: placeholder
|
|
|
|
|
|
2015-12-23 02:04:40 +05:30
|
|
|
|
.form-actions
|
2017-09-10 17:25:29 +05:30
|
|
|
|
= button_tag class: 'btn btn-create btn-upload-file', id: 'submit-all', type: 'button' do
|
|
|
|
|
= icon('spin spinner', class: 'js-loading-icon hidden' )
|
|
|
|
|
= button_title
|
|
|
|
|
= link_to _("Cancel"), '#', class: "btn btn-cancel", "data-dismiss" => "modal"
|
2015-09-25 12:07:36 +05:30
|
|
|
|
|
2016-01-14 18:37:52 +05:30
|
|
|
|
- unless can?(current_user, :push_code, @project)
|
|
|
|
|
.inline.prepend-left-10
|
|
|
|
|
= commit_in_fork_help
|
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
|
- content_for :page_specific_javascripts do
|
|
|
|
|
= page_specific_javascript_bundle_tag('blob')
|