添加静态模板

This commit is contained in:
2025-09-08 07:24:28 +00:00
parent b4bb4896af
commit 6df94872b3
8 changed files with 126 additions and 2 deletions

View 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)
}