summaryrefslogtreecommitdiffstats
path: root/templates/admin
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-08-08 16:29:14 +0800
committerGitHub <noreply@github.com>2023-08-08 08:29:14 +0000
commit71d253f42e6f7d73fdaad5039df58893c336a0e6 (patch)
tree66d336ea0c259ca2babfbe1c862e7904b65a1183 /templates/admin
parent78b2a1cc3689e1b7555bd874763eea7eb28982f9 (diff)
downloadgitea-71d253f42e6f7d73fdaad5039df58893c336a0e6.tar.gz
gitea-71d253f42e6f7d73fdaad5039df58893c336a0e6.zip
Remove unnecessary template helper DisableGravatar (#26386)
And one "AllowedUserVisibilityModes" was missing, add it. Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'templates/admin')
-rw-r--r--templates/admin/user/edit.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl
index 96e09156d1..4fea418e6f 100644
--- a/templates/admin/user/edit.tmpl
+++ b/templates/admin/user/edit.tmpl
@@ -159,7 +159,7 @@
<div class="ui attached segment">
<form class="ui form" action="{{.Link}}/avatar" method="post" enctype="multipart/form-data">
{{.CsrfTokenHtml}}
- {{if not (DisableGravatar $.Context)}}
+ {{if not .DisableGravatar}}
<div class="inline field">
<div class="ui radio checkbox">
<input name="source" value="lookup" type="radio" {{if not .User.UseCustomAvatar}}checked{{end}}>