summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-15 14:56:42 +0200
committerStan Hu <stanhu@gmail.com>2015-09-15 13:07:32 -0700
commite14aa19e39baf67bbc5bb4099627ae28844a4f5b (patch)
tree2f36f6b0841f78d3a50ee5963ca19eeebc51e1bf /app/views
parent400b3d26b3867df8910d05bb986f93ac0a3bf206 (diff)
downloadgitlab-ce-e14aa19e39baf67bbc5bb4099627ae28844a4f5b.tar.gz
Cleanup some html/css for upload feature
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/blob/_actions.html.haml6
-rw-r--r--app/views/projects/blob/_replace.html.haml8
-rw-r--r--app/views/projects/blob/_upload.html.haml9
-rw-r--r--app/views/projects/blob/new.html.haml11
4 files changed, 17 insertions, 17 deletions
diff --git a/app/views/projects/blob/_actions.html.haml b/app/views/projects/blob/_actions.html.haml
index 5b61846fe6d..131818d2a83 100644
--- a/app/views/projects/blob/_actions.html.haml
+++ b/app/views/projects/blob/_actions.html.haml
@@ -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
diff --git a/app/views/projects/blob/_replace.html.haml b/app/views/projects/blob/_replace.html.haml
index 84abf0303d0..1d11fb0ae72 100644
--- a/app/views/projects/blob/_replace.html.haml
+++ b/app/views/projects/blob/_replace.html.haml
@@ -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&nbsp;
- %a{href: '#', class: "markdown-selector"}>click to upload
+ .dropzone-previews.blob-upload-dropzone-previews
+ %p.dz-message.light
+ Attach files by dragging &amp; 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,
diff --git a/app/views/projects/blob/_upload.html.haml b/app/views/projects/blob/_upload.html.haml
index 5a6a3358a17..4666faca013 100644
--- a/app/views/projects/blob/_upload.html.haml
+++ b/app/views/projects/blob/_upload.html.haml
@@ -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&nbsp;
- %a{href: '#', class: "markdown-selector"}>click to upload
+ .dropzone-previews.blob-upload-dropzone-previews
+ %p.dz-message.light
+ Attach files by dragging &amp; 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,
diff --git a/app/views/projects/blob/new.html.haml b/app/views/projects/blob/new.html.haml
index 6fb46ea2040..9a50a52c453 100644
--- a/app/views/projects/blob/new.html.haml
+++ b/app/views/projects/blob/new.html.haml
@@ -1,10 +1,9 @@
-%h3.page-title<
- Create new file or&nbsp;
- %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