diff options
author | Charles Kenney <Charlesc.kenney@gmail.com> | 2018-11-20 13:16:42 -0500 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2018-11-20 13:16:42 -0500 |
commit | 6c90d12a0c1e70b5627eaea160e209b0ba8aa646 (patch) | |
tree | 0d5b32ed421a798fd6004c46196e698732cad569 | |
parent | 38e8ccac928996f129cace5317083f01e45feaf3 (diff) |
routes/repo/issue: implement issue pre-filling (#5521)
Signed-off-by: Charles Kenney <charlesc.kenney@gmail.com>
-rw-r--r-- | routes/repo/issue.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routes/repo/issue.go b/routes/repo/issue.go index 67071a44..55786f8f 100644 --- a/routes/repo/issue.go +++ b/routes/repo/issue.go @@ -345,6 +345,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("content") setTemplateIfExists(c, ISSUE_TEMPLATE_KEY, IssueTemplateCandidates) renderAttachmentSettings(c) |