Documentation
¶
Index ¶
- Constants
- func Code(ctx *context.Context)
- func Organizations(ctx *context.Context)
- func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions)
- func RenderUserSearch(ctx *context.Context, opts *user_model.SearchUserOptions, tplName base.TplName)
- func Repos(ctx *context.Context)
- func TopicSearch(ctx *context.Context)
- func Users(ctx *context.Context)
- type RepoSearchOptions
Constants ¶
View Source
const (
UserSearchDefaultSortType = "recentupdate"
UserSearchDefaultAdminSort = "alphabetically"
)
UserSearchDefaultSortType is the default sort type for user search
Variables ¶
This section is empty.
Functions ¶
func Organizations ¶
func Organizations(ctx *context.Context)
Organizations render explore organizations page
func RenderRepoSearch ¶
func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions)
RenderRepoSearch render repositories search page This function is also used to render the Admin Repository Management page.
func RenderUserSearch ¶
func RenderUserSearch(ctx *context.Context, opts *user_model.SearchUserOptions, tplName base.TplName)
RenderUserSearch render user search page
func TopicSearch ¶ added in v1.17.0
func TopicSearch(ctx *context.Context)
TopicSearch search for creating topic
Types ¶
type RepoSearchOptions ¶
type RepoSearchOptions struct {
OwnerID int64
Private bool
Restricted bool
PageSize int
OnlyShowRelevant bool
TplName base.TplName
}
RepoSearchOptions when calling search repositories
Click to show internal directories.
Click to hide internal directories.