mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-05 09:55:20 +02:00
Remove RequireHighlightJS
field, update plantuml example. (#19615)
This commit is contained in:
parent
5a75a5463e
commit
7b089c465d
11 changed files with 10 additions and 28 deletions
|
@ -24,8 +24,6 @@ const (
|
|||
|
||||
// NewDiffPatch render create patch page
|
||||
func NewDiffPatch(ctx *context.Context) {
|
||||
ctx.Data["RequireHighlightJS"] = true
|
||||
|
||||
canCommit := renderCommitRights(ctx)
|
||||
|
||||
ctx.Data["TreePath"] = ""
|
||||
|
@ -54,7 +52,6 @@ func NewDiffPatchPost(ctx *context.Context) {
|
|||
if form.CommitChoice == frmCommitChoiceNewBranch {
|
||||
branchName = form.NewBranchName
|
||||
}
|
||||
ctx.Data["RequireHighlightJS"] = true
|
||||
ctx.Data["TreePath"] = ""
|
||||
ctx.Data["BranchLink"] = ctx.Repo.RepoLink + "/src/" + ctx.Repo.BranchNameSubURL()
|
||||
ctx.Data["FileContent"] = form.Content
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue