0
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-18 21:30:36 +01:00
forgejo/models
Yarden Shoham abccb86b36
Show bot label next to username when rendering autor link if the user is a bot ()
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 () 2023-05-26 01:04:48 +00:00
activities Use the type RefName for all the needed places and fix pull mirror sync bugs () 2023-05-26 01:04:48 +00:00
admin
asymkey
auth
avatars
db Rewrite logger system () 2023-05-21 22:35:11 +00:00
dbfs
fixtures
git
issues Add the ability to pin Issues () 2023-05-25 15:17:19 +02:00
migrations Add the ability to pin Issues () 2023-05-25 15:17:19 +02:00
organization Add missing test case and fix typo in tests () 2023-05-24 21:06:04 +02:00
packages Add CRAN package registry () 2023-05-22 10:57:49 +08:00
perm Rewrite logger system () 2023-05-21 22:35:11 +00:00
project
pull
repo Rewrite logger system () 2023-05-21 22:35:11 +00:00
secret
shared/types
system
unit Rewrite logger system () 2023-05-21 22:35:11 +00:00
unittest Implement actions artifacts () 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 () 2023-05-26 18:58:11 +02:00
webhook New webhook trigger for receiving Pull Request review requests () 2023-05-24 22:06:27 -04:00
error.go
fixture_generation.go
fixture_test.go
main_test.go Merge setting.InitXXX into one function with options () 2023-05-04 11:55:35 +08:00
migrate.go Check primary keys for all tables and drop ForeignReference () 2022-12-23 19:35:43 +08:00
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