0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-24 04:24:37 +01:00
gitea/models
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
..
actions Use the type RefName for all the needed places and fix pull mirror sync bugs (#24634) 2023-05-26 01:04:48 +00:00
activities Use the type RefName for all the needed places and fix pull mirror sync bugs (#24634) 2023-05-26 01:04:48 +00:00
admin
asymkey
auth
avatars
db Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
dbfs
fixtures
git
issues Add the ability to pin Issues (#24406) 2023-05-25 15:17:19 +02:00
migrations Add the ability to pin Issues (#24406) 2023-05-25 15:17:19 +02:00
organization Add missing test case and fix typo in tests (#24915) 2023-05-24 21:06:04 +02:00
packages Add CRAN package registry (#22331) 2023-05-22 10:57:49 +08:00
perm Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
project
pull
repo Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
secret
shared/types
system
unit Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
unittest
user 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
webhook New webhook trigger for receiving Pull Request review requests (#24481) 2023-05-24 22:06:27 -04:00
error.go
fixture_generation.go
fixture_test.go
main_test.go
migrate.go
migrate_test.go
org.go
org_team.go
org_team_test.go
org_test.go
repo.go
repo_collaboration.go
repo_collaboration_test.go
repo_test.go
repo_transfer.go
repo_transfer_test.go