Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
e14aa19e
Commit
e14aa19e
authored
Sep 15, 2015
by
Dmitriy Zaporozhets
Committed by
Stan Hu
Sep 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup some html/css for upload feature
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
400b3d26
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
18 deletions
+27
-18
app/assets/stylesheets/generic/common.scss
app/assets/stylesheets/generic/common.scss
+8
-0
app/assets/stylesheets/pages/tree.scss
app/assets/stylesheets/pages/tree.scss
+2
-1
app/views/projects/blob/_actions.html.haml
app/views/projects/blob/_actions.html.haml
+3
-3
app/views/projects/blob/_replace.html.haml
app/views/projects/blob/_replace.html.haml
+4
-4
app/views/projects/blob/_upload.html.haml
app/views/projects/blob/_upload.html.haml
+5
-4
app/views/projects/blob/new.html.haml
app/views/projects/blob/new.html.haml
+5
-6
No files found.
app/assets/stylesheets/generic/common.scss
View file @
e14aa19e
...
@@ -382,3 +382,11 @@ table {
...
@@ -382,3 +382,11 @@ table {
margin-bottom
:
0
;
margin-bottom
:
0
;
}
}
}
}
.dropzone
.dz-preview
.dz-progress
{
border-color
:
$border-color
!
important
;
}
.dropzone
.dz-preview
.dz-progress
.dz-upload
{
background
:
$gl-success
!
important
;
}
app/assets/stylesheets/pages/tree.scss
View file @
e14aa19e
...
@@ -121,10 +121,11 @@
...
@@ -121,10 +121,11 @@
text-align
:
center
;
text-align
:
center
;
border
:
2px
;
border
:
2px
;
border-style
:
dashed
;
border-style
:
dashed
;
border-color
:
$border-color
;
min-height
:
200px
;
min-height
:
200px
;
}
}
.upload-link
{
.upload-link
{
font-weight
:
normal
;
font-weight
:
normal
;
color
:
#0000EE
;
color
:
$md-link-color
;
}
}
app/views/projects/blob/_actions.html.haml
View file @
e14aa19e
...
@@ -17,6 +17,6 @@
...
@@ -17,6 +17,6 @@
tree_join
(
@commit
.
sha
,
@path
)),
class:
'btn btn-sm'
tree_join
(
@commit
.
sha
,
@path
)),
class:
'btn btn-sm'
-
if
allowed_tree_edit?
-
if
allowed_tree_edit?
.btn-group
{
:role
=>
"group"
}
.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
{
'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
%button
.btn.btn-
remove
{
'data-target'
=>
'#modal-remove-blob'
,
'data-toggle'
=>
'modal'
}
Remove
app/views/projects/blob/_replace.html.haml
View file @
e14aa19e
...
@@ -10,10 +10,10 @@
...
@@ -10,10 +10,10 @@
.modal-body
.modal-body
=
form_tag
namespace_project_update_blob_path
(
@project
.
namespace
,
@project
,
@id
),
method: :put
,
class:
'blob-file-upload-form-js form-horizontal'
do
=
form_tag
namespace_project_update_blob_path
(
@project
.
namespace
,
@project
,
@id
),
method: :put
,
class:
'blob-file-upload-form-js form-horizontal'
do
.dropzone
.dropzone
.dropzone-previews
{
class:
"blob-upload-dropzone-previews"
}
.dropzone-previews
.blob-upload-dropzone-previews
%p
.dz-message
{
class:
"hint"
}
<
%p
.dz-message
.light
Attach
files
by
dragging
&
dropping
or
&
nbsp
;
Attach files by dragging
&
amp;
dropping or
%a
{
href:
'#'
,
class:
"markdown-selector"
}
>
click to upload
=
link_to
'click to upload'
,
'#'
,
class:
"markdown-selector"
%br
%br
.dropzone-alerts
{
class:
"alert alert-danger data"
,
"data-dismiss"
=>
"alert"
,
style:
"display:none"
}
.dropzone-alerts
{
class:
"alert alert-danger data"
,
"data-dismiss"
=>
"alert"
,
style:
"display:none"
}
=
render
'shared/commit_message_container'
,
params:
params
,
=
render
'shared/commit_message_container'
,
params:
params
,
...
...
app/views/projects/blob/_upload.html.haml
View file @
e14aa19e
...
@@ -10,10 +10,11 @@
...
@@ -10,10 +10,11 @@
.modal-body
.modal-body
=
form_tag
namespace_project_create_blob_path
(
@project
.
namespace
,
@project
,
@id
),
method: :post
,
class:
'blob-file-upload-form-js form-horizontal'
do
=
form_tag
namespace_project_create_blob_path
(
@project
.
namespace
,
@project
,
@id
),
method: :post
,
class:
'blob-file-upload-form-js form-horizontal'
do
.dropzone
.dropzone
.dropzone-previews
{
class:
"blob-upload-dropzone-previews"
}
.dropzone-previews.blob-upload-dropzone-previews
%p
.dz-message
{
class:
"hint"
}
<
%p
.dz-message.light
Attach
files
by
dragging
&
dropping
or
&
nbsp
;
Attach files by dragging
&
dropping or
%a
{
href:
'#'
,
class:
"markdown-selector"
}
>
click to upload
=
link_to
'click to upload'
,
'#'
,
class:
"markdown-selector"
%br
%br
.dropzone-alerts
{
class:
"alert alert-danger data"
,
"data-dismiss"
=>
"alert"
,
style:
"display:none"
}
.dropzone-alerts
{
class:
"alert alert-danger data"
,
"data-dismiss"
=>
"alert"
,
style:
"display:none"
}
=
render
'shared/commit_message_container'
,
params:
params
,
=
render
'shared/commit_message_container'
,
params:
params
,
...
...
app/views/projects/blob/new.html.haml
View file @
e14aa19e
%h3
.page-title
<
.gray-content-block.top-block
Create
new
file
or
&
nbsp
;
Create new file or
%a
.upload-link
{
href:
'#modal-upload-blob'
,
'data-target'
=>
'#modal-upload-blob'
,
'data-toggle'
=>
'modal'
}
>
upload existing one
=
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'
=
render
'projects/blob/upload'
%br
.file-editor
.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
=
form_tag
(
namespace_project_create_blob_path
(
@project
.
namespace
,
@project
,
@id
),
method: :post
,
class:
'form-horizontal form-new-file js-requires-input'
)
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment