Documentation ¶
Index ¶
- func BlockedUsers(ctx *context.Context, blocker *user_model.User)
- func BlockedUsersPost(ctx *context.Context, blocker *user_model.User)
- func FindUserProfileReadme(ctx *context.Context, doer *user_model.User) (profileDbRepo *repo_model.Repository, profileGitRepo *git.Repository, ...)
- func GetFilterUserIDByName(ctx context.Context, name string) optional.Option[int64]
- func LoadHeaderCount(ctx *context.Context) error
- func MakeSelfOnTop(doer *user.User, users []*user.User) []*user.User
- func PrepareContextForProfileBigAvatar(ctx *context.Context)
- func RenderOrgHeader(ctx *context.Context) error
- func RenderUserHeader(ctx *context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockedUsers ¶ added in v1.22.0
func BlockedUsers(ctx *context.Context, blocker *user_model.User)
func BlockedUsersPost ¶ added in v1.22.0
func BlockedUsersPost(ctx *context.Context, blocker *user_model.User)
func FindUserProfileReadme ¶ added in v1.21.0
func FindUserProfileReadme(ctx *context.Context, doer *user_model.User) (profileDbRepo *repo_model.Repository, profileGitRepo *git.Repository, profileReadmeBlob *git.Blob, profileClose func())
func GetFilterUserIDByName ¶ added in v1.23.0
GetFilterUserIDByName tries to get the user ID from the given username. Before, the "issue filter" passes user ID to query the list, but in many cases, it's impossible to pre-fetch the full user list. So it's better to make it work like GitHub: users could input username directly. Since it only converts the username to ID directly and is only used internally (to search issues), so no permission check is needed. Return values: * nil: no filter * some(id): match the id, the id could be -1 to match the issues without assignee * some(NonExistingID): match no issue (due to the user doesn't exist)
func LoadHeaderCount ¶ added in v1.21.0
func MakeSelfOnTop ¶ added in v1.23.0
func PrepareContextForProfileBigAvatar ¶ added in v1.21.0
PrepareContextForProfileBigAvatar set the context for big avatar view on the profile page
func RenderOrgHeader ¶ added in v1.23.0
func RenderUserHeader ¶
Types ¶
This section is empty.