0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-28 01:58:20 +01:00
gitea/models/user
Yarden Shoham abccb86b36
Show bot label next to username when rendering autor link if the user is a bot (#24943)
If the user is a bot, we'll add a label next to the author link that
says `bot`. I didn't localize `bot` because passing `locale` into the
`autorlink` template would require changing all calls.

# Example
`yardenshoham` is a bot.
## Before

![image](https://github.com/go-gitea/gitea/assets/20454870/77390780-b763-4f0f-b358-bbccdbf17a5d)

## After

![image](https://github.com/go-gitea/gitea/assets/20454870/72af342f-ee76-4337-95ad-4ecaba853fed)

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
2023-05-26 18:58:11 +02:00
..
avatar.go
badge.go Remove most path-based golangci exclusions (#24214) 2023-04-19 22:08:01 -04:00
email_address_test.go
email_address.go
error.go Refactor rename user and rename organization (#24052) 2023-05-21 23:13:47 +08:00
external_login_user.go
follow_test.go
follow.go
list.go
main_test.go
must_change_password.go
openid_test.go
openid.go
redirect_test.go
redirect.go
search.go
setting_keys.go
setting_test.go
setting.go Add Debian package registry (#24426) 2023-05-02 12:31:35 -04:00
user_system.go
user_test.go Only validate changed columns when update user (#24867) 2023-05-24 07:30:55 +00:00
user_update.go
user.go Show bot label next to username when rendering autor link if the user is a bot (#24943) 2023-05-26 18:58:11 +02:00