aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/org/settings/options.tmpl2
-rw-r--r--templates/repo/settings/options.tmpl2
-rw-r--r--templates/user/settings/profile.tmpl2
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/org/settings/options.tmpl b/templates/org/settings/options.tmpl
index 1caa4210e6..56ad5fa896 100644
--- a/templates/org/settings/options.tmpl
+++ b/templates/org/settings/options.tmpl
@@ -91,7 +91,7 @@
{{.CsrfTokenHtml}}
<div class="inline field">
<label for="avatar">{{.locale.Tr "settings.choose_new_avatar"}}</label>
- <input name="avatar" type="file" >
+ <input name="avatar" type="file" accept="image/png,image/jpeg,image/gif,image/webp">
</div>
<div class="field">
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index 1aaf58ee91..81c1e4759e 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -60,7 +60,7 @@
{{.CsrfTokenHtml}}
<div class="inline field">
<label for="avatar">{{.locale.Tr "settings.choose_new_avatar"}}</label>
- <input name="avatar" type="file" >
+ <input name="avatar" type="file" accept="image/png,image/jpeg,image/gif,image/webp">
</div>
<div class="field">
diff --git a/templates/user/settings/profile.tmpl b/templates/user/settings/profile.tmpl
index e64f4c7efa..7ef9a955a7 100644
--- a/templates/user/settings/profile.tmpl
+++ b/templates/user/settings/profile.tmpl
@@ -123,7 +123,7 @@
<div class="inline field">
<label for="avatar">{{.locale.Tr "settings.choose_new_avatar"}}</label>
- <input name="avatar" type="file" >
+ <input name="avatar" type="file" accept="image/png,image/jpeg,image/gif,image/webp">
</div>
<div class="field">