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

Improved upload messages

parent 674ba544
No related branches found
No related tags found
No related merge requests found
...@@ -69,6 +69,18 @@ nav ...@@ -69,6 +69,18 @@ nav
box-shadow: 0 2px 4px rgba(33,33,33,0.2) box-shadow: 0 2px 4px rgba(33,33,33,0.2)
text-decoration: none text-decoration: none
border-radius: 2px border-radius: 2px
.success
background: #DCEDC8
color: #689F38
border-color: #689F38
a
color: #33691E
.error
background: #FFEBEE
color: #F44336
border-color: #F44336
a
color: #D32F2F
form.upload form.upload
padding: 96px 0 padding: 96px 0
......
...@@ -8,7 +8,11 @@ ...@@ -8,7 +8,11 @@
</div> </div>
{{else}} {{else}}
<div class="info error"> <div class="info error">
{{if .Id}}
<h2>Upload of {{.Id}} failed.</h2> <h2>Upload of {{.Id}} failed.</h2>
{{else}}
<h2>Upload failed.</h2>
{{end}}
{{range .Errors}} {{range .Errors}}
<pre>{{.}}</pre> <pre>{{.}}</pre>
{{end}} {{end}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment