Skip to content

Commit 67086c3

Browse files
yp05327GiteaBot
authored andcommitted
Add missing public user visibility in user details page (go-gitea#27246)
It seems that `Public` user visibility is missing in the template. Before: ![image](https://github.com/go-gitea/gitea/assets/18380374/a8e7f3e0-1b77-41a0-921a-10adba90211e) After: ![image](https://github.com/go-gitea/gitea/assets/18380374/b0bffe13-0ca6-453e-95d7-0794528d5733)
1 parent daaf0ad commit 67086c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/admin/user/view_details.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
</div>
3737
<div class="flex-item-body">
3838
<b>{{ctx.Locale.Tr "settings.visibility"}}:</b>
39+
{{if .User.Visibility.IsPublic}}{{ctx.Locale.Tr "settings.visibility.public"}}{{end}}
3940
{{if .User.Visibility.IsLimited}}{{ctx.Locale.Tr "settings.visibility.limited"}}{{end}}
4041
{{if .User.Visibility.IsPrivate}}{{ctx.Locale.Tr "settings.visibility.private"}}{{end}}
4142
</div>

0 commit comments

Comments
 (0)