Skip to content

Commit 0155ad1

Browse files
Merge branch 'main' into fix-tmpl
2 parents 417c7fe + f8edc29 commit 0155ad1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

custom/conf/app.example.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2457,7 +2457,7 @@ LEVEL = Info
24572457
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
24582458
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
24592459
;; Set the maximum number of characters in a mermaid source. (Set to -1 to disable limits)
2460-
;MERMAID_MAX_SOURCE_CHARACTERS = 5000
2460+
;MERMAID_MAX_SOURCE_CHARACTERS = 50000
24612461

24622462
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
24632463
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

modules/setting/markup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func loadMarkupFrom(rootCfg ConfigProvider) {
127127
}
128128
}
129129

130-
MermaidMaxSourceCharacters = rootCfg.Section("markup").Key("MERMAID_MAX_SOURCE_CHARACTERS").MustInt(5000)
130+
MermaidMaxSourceCharacters = rootCfg.Section("markup").Key("MERMAID_MAX_SOURCE_CHARACTERS").MustInt(50000)
131131
ExternalMarkupRenderers = make([]*MarkupRenderer, 0, 10)
132132
ExternalSanitizerRules = make([]MarkupSanitizerRule, 0, 10)
133133

templates/repo/clone_panel.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<button class="ui primary button js-btn-clone-panel">
22
{{svg "octicon-code" 16}}
3-
<span>Code</span>
3+
<span>{{ctx.Locale.Tr "repo.code"}}</span>
44
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
55
</button>
66
<div class="clone-panel-popup tippy-target">

0 commit comments

Comments
 (0)