浏览代码

Implement issue title and content prefilling

Yoginth 7 年之前
父节点
当前提交
39732bcbcc
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      routes/repo/issue.go

+ 2 - 0
routes/repo/issue.go

@@ -343,6 +343,8 @@ func NewIssue(c *context.Context) {
 	c.Data["PageIsIssueList"] = true
 	c.Data["RequireHighlightJS"] = true
 	c.Data["RequireSimpleMDE"] = true
+	c.Data["title"] = c.Query("title")
+	c.Data["content"] = c.Query("body")
 	setTemplateIfExists(c, ISSUE_TEMPLATE_KEY, IssueTemplateCandidates)
 	renderAttachmentSettings(c)