Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
imghost
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
imghost
Commits
a2acde3e
Commit
a2acde3e
authored
7 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Minor UI improvements
parent
75cd0b20
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
assets/sass/style.sass
+23
-0
23 additions, 0 deletions
assets/sass/style.sass
templates/upload.html
+12
-3
12 additions, 3 deletions
templates/upload.html
with
35 additions
and
3 deletions
assets/sass/style.sass
+
23
−
0
View file @
a2acde3e
...
@@ -96,6 +96,29 @@ form.upload
...
@@ -96,6 +96,29 @@ form.upload
text-align
:
center
text-align
:
center
background
:
#333333
background
:
#333333
&
:not
(
.submitted
)
.upload-label
display
:
none
.submitted
label
,
input
display
:
none
label
display
:
inline-block
background
:
#FFC107
padding
:
4px
16px
border-radius
:
2px
box-shadow
:
0
1px
2px
rgba
(
0
,
0
,
0
,
0
.1
)
line-height
:
24px
color
:
#282828
cursor
:
pointer
&
:hover
,
&
:focus
background
:
#FFD54F
box-shadow
:
0
2px
4px
rgba
(
0
,
0
,
0
,
0
.2
)
input
display
:
none
.images
.images
display
:
flex
display
:
flex
max-width
:
1024px
max-width
:
1024px
...
...
This diff is collapsed.
Click to expand it.
templates/upload.html
+
12
−
3
View file @
a2acde3e
...
@@ -20,9 +20,18 @@
...
@@ -20,9 +20,18 @@
{{end}}
{{end}}
{{end}}
{{end}}
<form
class=
"upload"
action=
"/upload/"
method=
"POST"
enctype=
"multipart/form-data"
>
<form
class=
"upload"
action=
"/upload/"
method=
"POST"
enctype=
"multipart/form-data"
>
<input
type=
"file"
name=
"file"
accept=
".jpg,.jpeg,.png,.gif,.apng,.tiff,.tif,.bmp,.webp,.mp4,.mov"
<input
type=
"file"
name=
"file"
accept=
".jpg,.jpeg,.png,.gif,.apng,.tiff,.tif,.bmp,.webp,.mp4,.mov"
multiple
/>
multiple
/><br>
<label
for=
"file"
>
Select Files
</label>
<input
type=
"submit"
/>
<input
type=
"submit"
value=
"Upload"
/>
<p
class=
"upload-label"
>
Uploading…
</p>
</form>
</form>
</div>
</div>
<script>
const
form
=
document
.
querySelector
(
"
form.upload
"
);
const
element
=
document
.
querySelector
(
"
form.upload input[type=file]
"
);
element
.
addEventListener
(
"
change
"
,
()
=>
{
form
.
submit
();
form
.
classList
.
add
(
"
submitted
"
);
})
</script>
{{end}}
{{end}}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment