diff options
author | Roger Luo <rogerluo410@gmail.com> | 2021-03-18 10:02:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-17 22:02:38 -0400 |
commit | 119d2cb6e4abb4da90f0da6c908d52e4c26a49a4 (patch) | |
tree | aeb2cc30190edc0345315c821ca0f9c082eeb47f /routers | |
parent | 03e99f847c357264597132006c9cf585626c36d8 (diff) | |
download | gitea-119d2cb6e4abb4da90f0da6c908d52e4c26a49a4.tar.gz gitea-119d2cb6e4abb4da90f0da6c908d52e4c26a49a4.zip |
Create new issue from code (#14863)
* Feat: add reference in new issue with permalink menu for code view.
* Fix: recover index.js file.
* Add comments and redo ci.
* Fix code convention
* Fix code.
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/issue.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 9f04c54816..15459cd0e6 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -781,6 +781,7 @@ func NewIssue(ctx *context.Context) { ctx.Data["TitleQuery"] = title body := ctx.Query("body") ctx.Data["BodyQuery"] = body + ctx.Data["IsProjectsEnabled"] = ctx.Repo.CanRead(models.UnitTypeProjects) ctx.Data["IsAttachmentEnabled"] = setting.Attachment.Enabled upload.AddUploadContext(ctx, "comment") |