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 ¶
func BlockedUsers(ctx *context.Context, blocker *user_model.User)
func BlockedUsersPost ¶
func BlockedUsersPost(ctx *context.Context, blocker *user_model.User)
func FindUserProfileReadme ¶
func FindUserProfileReadme(ctx *context.Context, doer *user_model.User) (profileDbRepo *repo_model.Repository, profileGitRepo *git.Repository, profileReadmeBlob *git.Blob, profileClose func())
func GetFilterUserIDByName ¶
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 ¶
func PrepareContextForProfileBigAvatar ¶
PrepareContextForProfileBigAvatar set the context for big avatar view on the profile page
func RenderOrgHeader ¶
func RenderUserHeader ¶
Types ¶
This section is empty.