diff options
author | harry <harryzhxu@gmail.com> | 2017-12-11 14:03:04 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-12-11 14:03:04 +0800 |
commit | 03ec35ed79e38b907de8812e3f7cccc422cb5937 (patch) | |
tree | 8a430543964c8defd61b10fa099ca865b60272e3 /routers/repo | |
parent | f2e20c81b66e6a937ecdb686f8d1011371433365 (diff) | |
download | gitea-03ec35ed79e38b907de8812e3f7cccc422cb5937.tar.gz gitea-03ec35ed79e38b907de8812e3f7cccc422cb5937.zip |
Mention completion for issue editor. (#3136)
* new issue mention
* Mention completion on new issue and view issue page.
* Code format.
* Require tribute in pull request page.
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/issue.go | 2 | ||||
-rw-r--r-- | routers/repo/pull.go | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index ba68b49ad8..7664d074e3 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -351,6 +351,7 @@ func NewIssue(ctx *context.Context) { ctx.Data["PageIsIssueList"] = true ctx.Data["RequireHighlightJS"] = true ctx.Data["RequireSimpleMDE"] = true + ctx.Data["RequireTribute"] = true setTemplateIfExists(ctx, issueTemplateKey, IssueTemplateCandidates) renderAttachmentSettings(ctx) @@ -478,6 +479,7 @@ func NewIssuePost(ctx *context.Context, form auth.CreateIssueForm) { func ViewIssue(ctx *context.Context) { ctx.Data["RequireHighlightJS"] = true ctx.Data["RequireDropzone"] = true + ctx.Data["RequireTribute"] = true renderAttachmentSettings(ctx) issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index")) diff --git a/routers/repo/pull.go b/routers/repo/pull.go index 284cb2d2d5..c2f0a07fe7 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -701,6 +701,7 @@ func CompareAndPullRequest(ctx *context.Context) { ctx.Data["PageIsComparePull"] = true ctx.Data["IsDiffCompare"] = true ctx.Data["RequireHighlightJS"] = true + ctx.Data["RequireTribute"] = true setTemplateIfExists(ctx, pullRequestTemplateKey, pullRequestTemplateCandidates) renderAttachmentSettings(ctx) |