diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-08-08 16:29:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-08 08:29:14 +0000 |
commit | 71d253f42e6f7d73fdaad5039df58893c336a0e6 (patch) | |
tree | 66d336ea0c259ca2babfbe1c862e7904b65a1183 /templates/admin | |
parent | 78b2a1cc3689e1b7555bd874763eea7eb28982f9 (diff) | |
download | gitea-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.tmpl | 2 |
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}}> |