|
|
|
@ -955,7 +955,6 @@ func NewIssuePost(ctx *context.Context) { |
|
|
|
|
ctx.Data["NewIssueChooseTemplate"] = len(ctx.IssueTemplatesFromDefaultBranch()) > 0 |
|
|
|
|
ctx.Data["RequireHighlightJS"] = true |
|
|
|
|
ctx.Data["RequireSimpleMDE"] = true |
|
|
|
|
ctx.Data["ReadOnly"] = false |
|
|
|
|
ctx.Data["PullRequestWorkInProgressPrefixes"] = setting.Repository.PullRequest.WorkInProgressPrefixes |
|
|
|
|
ctx.Data["IsAttachmentEnabled"] = setting.Attachment.Enabled |
|
|
|
|
upload.AddUploadContext(ctx, "comment") |
|
|
|
@ -1630,7 +1629,6 @@ func ViewIssue(ctx *context.Context) { |
|
|
|
|
ctx.Data["Participants"] = participants |
|
|
|
|
ctx.Data["NumParticipants"] = len(participants) |
|
|
|
|
ctx.Data["Issue"] = issue |
|
|
|
|
ctx.Data["ReadOnly"] = false |
|
|
|
|
ctx.Data["SignInLink"] = setting.AppSubURL + "/user/login?redirect_to=" + url.QueryEscape(ctx.Data["Link"].(string)) |
|
|
|
|
ctx.Data["IsIssuePoster"] = ctx.IsSigned && issue.IsPoster(ctx.User.ID) |
|
|
|
|
ctx.Data["HasIssuesOrPullsWritePermission"] = ctx.Repo.CanWriteIssuesOrPulls(issue.IsPull) |
|
|
|
|