Cleanup some html/css for upload feature
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
400b3d26b3
commit
e14aa19e39
6 changed files with 27 additions and 18 deletions
|
@ -382,3 +382,11 @@ table {
|
|||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.dropzone .dz-preview .dz-progress {
|
||||
border-color: $border-color !important;
|
||||
}
|
||||
|
||||
.dropzone .dz-preview .dz-progress .dz-upload {
|
||||
background: $gl-success !important;
|
||||
}
|
||||
|
|
|
@ -121,10 +121,11 @@
|
|||
text-align: center;
|
||||
border: 2px;
|
||||
border-style: dashed;
|
||||
border-color: $border-color;
|
||||
min-height: 200px;
|
||||
}
|
||||
|
||||
.upload-link {
|
||||
font-weight: normal;
|
||||
color: #0000EE;
|
||||
color: $md-link-color;
|
||||
}
|
||||
|
|
|
@ -17,6 +17,6 @@
|
|||
tree_join(@commit.sha, @path)), class: 'btn btn-sm'
|
||||
|
||||
- if allowed_tree_edit?
|
||||
.btn-group{:role => "group"}
|
||||
%button.btn.btn-default{class: 'btn-primary', href: '#modal-replace-blob', 'data-target' => '#modal-replace-blob', 'data-toggle' => 'modal'} Replace
|
||||
%button.btn.btn-default{class: 'btn-remove', href: '#modal-remove-blob', 'data-target' => '#modal-remove-blob', 'data-toggle' => 'modal'} Remove
|
||||
.btn-group{ role: "group" }
|
||||
%button.btn.btn-default{ 'data-target' => '#modal-replace-blob', 'data-toggle' => 'modal' } Replace
|
||||
%button.btn.btn-remove{ 'data-target' => '#modal-remove-blob', 'data-toggle' => 'modal' } Remove
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
.modal-body
|
||||
= form_tag namespace_project_update_blob_path(@project.namespace, @project, @id), method: :put, class: 'blob-file-upload-form-js form-horizontal' do
|
||||
.dropzone
|
||||
.dropzone-previews{class: "blob-upload-dropzone-previews"}
|
||||
%p.dz-message{class: "hint"}<
|
||||
Attach files by dragging & dropping or
|
||||
%a{href: '#', class: "markdown-selector"}>click to upload
|
||||
.dropzone-previews.blob-upload-dropzone-previews
|
||||
%p.dz-message.light
|
||||
Attach files by dragging & dropping or
|
||||
= link_to 'click to upload', '#', class: "markdown-selector"
|
||||
%br
|
||||
.dropzone-alerts{class: "alert alert-danger data", "data-dismiss" => "alert", style: "display:none"}
|
||||
= render 'shared/commit_message_container', params: params,
|
||||
|
|
|
@ -10,10 +10,11 @@
|
|||
.modal-body
|
||||
= form_tag namespace_project_create_blob_path(@project.namespace, @project, @id), method: :post, class: 'blob-file-upload-form-js form-horizontal' do
|
||||
.dropzone
|
||||
.dropzone-previews{class: "blob-upload-dropzone-previews"}
|
||||
%p.dz-message{class: "hint"}<
|
||||
Attach files by dragging & dropping or
|
||||
%a{href: '#', class: "markdown-selector"}>click to upload
|
||||
.dropzone-previews.blob-upload-dropzone-previews
|
||||
%p.dz-message.light
|
||||
Attach files by dragging & dropping or
|
||||
= link_to 'click to upload', '#', class: "markdown-selector"
|
||||
|
||||
%br
|
||||
.dropzone-alerts{class: "alert alert-danger data", "data-dismiss" => "alert", style: "display:none"}
|
||||
= render 'shared/commit_message_container', params: params,
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
%h3.page-title<
|
||||
Create new file or
|
||||
%a.upload-link{href: '#modal-upload-blob', 'data-target' => '#modal-upload-blob', 'data-toggle' => 'modal'}>upload existing one
|
||||
.gray-content-block.top-block
|
||||
Create new file or
|
||||
= link_to 'upload existing one', '#modal-upload-blob',
|
||||
{ class: 'upload-link', 'data-target' => '#modal-upload-blob', 'data-toggle' => 'modal'}
|
||||
|
||||
.file-title
|
||||
= render 'projects/blob/upload'
|
||||
%br
|
||||
= render 'projects/blob/upload'
|
||||
|
||||
.file-editor
|
||||
= form_tag(namespace_project_create_blob_path(@project.namespace, @project, @id), method: :post, class: 'form-horizontal form-new-file js-requires-input') do
|
||||
|
|
Loading…
Reference in a new issue