0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-22 09:22:35 +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 Make repo migration cancelable and fix various bugs (#24605) 2023-05-11 08:25:46 +00:00
asymkey
auth
avatars
db Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
dbfs
fixtures Implement actions artifacts (#22738) 2023-05-19 21:37:57 +08:00
git Fix missed table name on iterate lfs meta objects (#24768) 2023-05-17 23:51:22 +08:00
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 Respect original content when creating secrets (#24745) 2023-05-16 14:49:40 +08:00
shared/types Display owner of a runner as a tooltip instead of static text (#24377) 2023-05-12 08:43:27 +00:00
system
unit Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
unittest Implement actions artifacts (#22738) 2023-05-19 21:37:57 +08:00
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 Implement actions artifacts (#22738) 2023-05-19 21:37:57 +08:00
repo_collaboration.go
repo_collaboration_test.go
repo_test.go
repo_transfer.go
repo_transfer_test.go