From 3e0a27157c8a87d8da166530f290260264185b4e Mon Sep 17 00:00:00 2001 From: Florian Kaiser Date: Mon, 1 Feb 2016 19:52:47 +0000 Subject: Make highlighted markdown code blocks work on issue pages --- routers/repo/issue.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'routers') diff --git a/routers/repo/issue.go b/routers/repo/issue.go index a4efb68024..b031e42ce7 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -291,6 +291,8 @@ func NewIssue(ctx *middleware.Context) { return } + ctx.Data["RequireHighlightJS"] = true + ctx.HTML(200, ISSUE_NEW) } @@ -623,6 +625,9 @@ func ViewIssue(ctx *middleware.Context) { ctx.Data["Issue"] = issue ctx.Data["IsIssueOwner"] = ctx.Repo.IsAdmin() || (ctx.IsSigned && issue.IsPoster(ctx.User.Id)) ctx.Data["SignInLink"] = setting.AppSubUrl + "/user/login" + + ctx.Data["RequireHighlightJS"] = true + ctx.HTML(200, ISSUE_VIEW) } -- cgit v1.2.3