2015-09-10 10:18:40 -04:00
|
|
|
|
#modal-upload-blob.modal
|
|
|
|
|
.modal-dialog
|
|
|
|
|
.modal-content
|
|
|
|
|
.modal-header
|
2016-12-26 05:47:16 -05:00
|
|
|
|
%a.close{ href: "#", "data-dismiss" => "modal" } ×
|
2017-01-13 11:07:21 -05:00
|
|
|
|
%h3.page-title= title
|
2015-09-10 10:18:40 -04:00
|
|
|
|
.modal-body
|
2017-03-07 19:04:20 -05:00
|
|
|
|
= form_tag form_path, method: method, class: 'js-quick-submit js-upload-blob-form form-horizontal', data: { method: method } do
|
2015-09-10 10:18:40 -04:00
|
|
|
|
.dropzone
|
2015-09-15 08:56:42 -04:00
|
|
|
|
.dropzone-previews.blob-upload-dropzone-previews
|
|
|
|
|
%p.dz-message.light
|
2017-06-19 16:26:28 -04:00
|
|
|
|
- upload_link = link_to s_('UploadLink|click to upload'), '#', class: "markdown-selector"
|
2017-06-09 09:08:39 -04:00
|
|
|
|
- dropzone_text = _('Attach a file by drag & drop or %{upload_link}') % { upload_link: upload_link }
|
|
|
|
|
#{ dropzone_text.html_safe }
|
|
|
|
|
|
2015-09-10 10:18:40 -04:00
|
|
|
|
%br
|
2016-12-26 05:47:16 -05:00
|
|
|
|
.dropzone-alerts.alert.alert-danger.data{ style: "display:none" }
|
2015-11-17 12:53:56 -05:00
|
|
|
|
|
|
|
|
|
= render 'shared/new_commit_form', placeholder: placeholder
|
|
|
|
|
|
2015-12-02 08:34:20 -05:00
|
|
|
|
.form-actions
|
2017-07-16 19:35:00 -04:00
|
|
|
|
= 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
|
2017-06-09 09:08:39 -04:00
|
|
|
|
= link_to _("Cancel"), '#', class: "btn btn-cancel", "data-dismiss" => "modal"
|
2015-09-10 10:18:40 -04:00
|
|
|
|
|
2015-12-18 04:03:34 -05:00
|
|
|
|
- unless can?(current_user, :push_code, @project)
|
|
|
|
|
.inline.prepend-left-10
|
|
|
|
|
= commit_in_fork_help
|
|
|
|
|
|
2017-03-07 19:04:20 -05:00
|
|
|
|
- content_for :page_specific_javascripts do
|
|
|
|
|
= page_specific_javascript_bundle_tag('blob')
|