explore

package
v1.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const UserSearchDefaultSortType = "alphabetically"

UserSearchDefaultSortType is the default sort type for user search

Variables

This section is empty.

Functions

func Code

func Code(ctx *context.Context)

Code render explore code page

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 Repos

func Repos(ctx *context.Context)

Repos render explore repositories page

func TopicSearch added in v1.17.0

func TopicSearch(ctx *context.Context)

TopicSearch search for creating topic

func Users

func Users(ctx *context.Context)

Users render explore users page

Types

type RepoSearchOptions

type RepoSearchOptions struct {
	OwnerID          int64
	Private          bool
	Restricted       bool
	PageSize         int
	OnlyShowRelevant bool
	TplName          base.TplName
}

RepoSearchOptions when calling search repositories

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL