Skip to content
Snippets Groups Projects
Commit 9848daca authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Improved upload API

parent 088d5d4c
Branches
No related tags found
No related merge requests found
.detailpage
.page.image.detail
display: flex
flex-direction: row
align-items: start
......
.images
.page.image.list
display: flex
max-width: 1024px
margin: 0 auto
......
.page.upload
.alert
padding: 16px
margin: 16px 0
......@@ -52,11 +53,5 @@ form.upload
top: 0
bottom: 0
opacity: 0
input[type=submit]
display: none
&:not(.submitted)
.upload-label
display: none
.submitted
label, input
&.submitted
display: none
\ No newline at end of file
{{define "title"}}{{.Image.Title}} | i.k8r{{end}}
{{define "content"}}
<div class="detailpage">
<div class="page image detail">
<div class="detail">
{{if .IsMine}}
<h2 class="title fake-input" contenteditable="true" placeholder="Title">{{.Image.Title}}</h2>
......
{{define "title"}}My Images | i.k8r{{end}}
{{define "content"}}
<div class="images">
<div class="page image list">
{{range .Images}}
<a class="image" href="/i/{{.Id}}">
<div class="image-container">
......
{{define "title"}}Upload | i.k8r{{end}}
{{define "content"}}
<div class="container centered">
<div class="page upload container centered">
{{range .Results}}
{{if .Success}}
<div class="alert success">
......@@ -24,8 +24,6 @@
<span class="text">Select Files</span>
<input type="file" name="file" accept=".jpg,.jpeg,.png,.gif,.apng,.tiff,.tif,.bmp,.webp,.mp4,.mov" multiple/>
</label>
<input type="submit" value="Upload"/>
<p class="upload-label">Uploading…</p>
</form>
<div class="uploading images"></div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment