You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/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>
1 year ago
..
actions Use the type RefName for all the needed places and fix pull mirror sync bugs (#24634) 1 year ago
activities Use the type RefName for all the needed places and fix pull mirror sync bugs (#24634) 1 year ago
admin Make repo migration cancelable and fix various bugs (#24605) 1 year ago
asymkey Merge setting.InitXXX into one function with options (#24389) 1 year ago
auth Fix 500 error if there is a name conflict when edit authentication source (#23832) 1 year ago
avatars Avoid warning for system setting when start up (#23054) 1 year ago
db Rewrite logger system (#24726) 1 year ago
dbfs Merge setting.InitXXX into one function with options (#24389) 1 year ago
fixtures Implement actions artifacts (#22738) 1 year ago
git Fix missed table name on iterate lfs meta objects (#24768) 1 year ago
issues Add the ability to pin Issues (#24406) 1 year ago
migrations Add the ability to pin Issues (#24406) 1 year ago
organization Add missing test case and fix typo in tests (#24915) 1 year ago
packages Add CRAN package registry (#22331) 1 year ago
perm Rewrite logger system (#24726) 1 year ago
project Improve GetBoards and getDefaultBoard (#22981) 1 year ago
pull refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo Rewrite logger system (#24726) 1 year ago
secret Respect original content when creating secrets (#24745) 1 year ago
shared/types Display owner of a runner as a tooltip instead of static text (#24377) 1 year ago
system Avoid warning for system setting when start up (#23054) 1 year ago
unit Rewrite logger system (#24726) 1 year ago
unittest Implement actions artifacts (#22738) 1 year ago
user Show `bot` label next to username when rendering autor link if the user is a bot (#24943) 1 year ago
webhook New webhook trigger for receiving Pull Request review requests (#24481) 1 year ago
error.go Implement FSFE REUSE for golang files (#21840) 2 years ago
fixture_generation.go Implement FSFE REUSE for golang files (#21840) 2 years ago
fixture_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go Merge setting.InitXXX into one function with options (#24389) 1 year ago
migrate.go Check primary keys for all tables and drop ForeignReference (#21721) 2 years ago
migrate_test.go Check primary keys for all tables and drop ForeignReference (#21721) 2 years ago
org.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
org_team.go Remove org users who belong to no teams (#24247) 1 year ago
org_team_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
org_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Implement actions artifacts (#22738) 1 year ago
repo_collaboration.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo_collaboration_test.go Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 1 year ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo_transfer.go Fix unclear `IsRepositoryExist` logic (#24374) 1 year ago
repo_transfer_test.go Rename almost all Ctx functions (#22071) 2 years ago