aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/upload.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/upload.tmpl')
-rw-r--r--templates/repo/upload.tmpl13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/repo/upload.tmpl b/templates/repo/upload.tmpl
new file mode 100644
index 0000000000..93bc098dae
--- /dev/null
+++ b/templates/repo/upload.tmpl
@@ -0,0 +1,13 @@
+<div
+ class="ui dropzone"
+ id="dropzone"
+ data-upload-url="{{.UploadUrl}}"
+ data-remove-url="{{.UploadRemoveUrl}}"
+ data-accepts="{{.UploadAccepts}}"
+ data-max-file="{{.UploadMaxFiles}}"
+ data-max-size="{{.UploadMaxSize}}"
+ data-default-message="{{.i18n.Tr "dropzone.default_message"}}"
+ data-invalid-input-type="{{.i18n.Tr "dropzone.invalid_input_type"}}"
+ data-file-too-big="{{.i18n.Tr "dropzone.file_too_big"}}"
+ data-remove-file="{{.i18n.Tr "dropzone.remove_file"}}"
+></div>