21 lines
372 B
Go
21 lines
372 B
Go
|
package repo
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
|
||
|
"code.gitea.io/gitea/modules/templates"
|
||
|
"code.gitea.io/gitea/services/context"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
tplCreateFromTemplate templates.TplName = "repo/create-from-template/create-from-template"
|
||
|
)
|
||
|
|
||
|
func CreateFromTemplate(ctx *context.Context) {
|
||
|
createCommon(ctx)
|
||
|
if ctx.Written() {
|
||
|
return
|
||
|
}
|
||
|
ctx.HTML(http.StatusOK, tplCreateFromTemplate)
|
||
|
}
|