添加静态模板
This commit is contained in:
20
routers/web/repo/create_from_template.go
Normal file
20
routers/web/repo/create_from_template.go
Normal file
@@ -0,0 +1,20 @@
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user