File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
templates/repo/issue/view_content Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,10 @@ func NewFuncMap() []template.FuncMap {
160
160
return setting .DisableGitHooks
161
161
},
162
162
"TrN" : TrN ,
163
+ // TODO: Remove this once go-ini parser supports unescaping comment characters
164
+ "UnescapeLocale" : func (str string ) string {
165
+ return strings .NewReplacer ("\\ ;" , ";" , "\\ #" , "#" ).Replace (str )
166
+ },
163
167
}}
164
168
}
165
169
Original file line number Diff line number Diff line change @@ -627,8 +627,8 @@ issues.label_templates.info = There are not any labels yet. You can click on the
627
627
issues.label_templates.helper = Select a label set
628
628
issues.label_templates.use = Use this label set
629
629
issues.label_templates.fail_to_load_file = Failed to load label template file ' %s' : %v
630
- issues.add_label_at = `added the <div class="ui label" style="color: %s; background-color: %s">%s</div> label %s`
631
- issues.remove_label_at = `removed the <div class="ui label" style="color: %s; background-color: %s">%s</div> label %s`
630
+ issues.add_label_at = `added the <div class="ui label" style="color: %s\ ; background-color: %s">%s</div> label %s`
631
+ issues.remove_label_at = `removed the <div class="ui label" style="color: %s\ ; background-color: %s">%s</div> label %s`
632
632
issues.add_milestone_at = `added this to the <b>%s</b> milestone %s`
633
633
issues.change_milestone_at = `modified the milestone from <b>%s</b> to <b>%s</b> %s`
634
634
issues.remove_milestone_at = `removed this from the <b>%s</b> milestone %s`
Original file line number Diff line number Diff line change 96
96
<img src="{{.Poster.RelAvatarLink}}">
97
97
</a>
98
98
<span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.Name}}</a>
99
- {{if .Content}}{{$.i18n.Tr "repo.issues.add_label_at" .Label.ForegroundColor .Label.Color .Label.Name $createdStr | Safe}}{{else}}{{$.i18n.Tr "repo.issues.remove_label_at" .Label.ForegroundColor .Label.Color .Label.Name $createdStr | Safe}}{{end}}</span>
99
+ {{if .Content}}{{$.i18n.Tr "repo.issues.add_label_at" .Label.ForegroundColor .Label.Color .Label.Name $createdStr | UnescapeLocale | Safe}}{{else}}{{$.i18n.Tr "repo.issues.remove_label_at" .Label.ForegroundColor .Label.Color .Label.Name $createdStr | UnescapeLocale | Safe}}{{end}}</span>
100
100
</div>
101
101
{{end}}
102
102
{{else if eq .Type 8}}
You can’t perform that action at this time.
0 commit comments