Skip to content

Commit 1f89a45

Browse files
authored
Fix incorrect change from #27231 (#27275)
1 parent 939d410 commit 1f89a45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/projects/new.tmpl

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<div class="default text">{{ctx.Locale.Tr "repo.projects.template.desc_helper"}}</div>
3030
<div class="menu">
3131
{{range $element := .BoardTypes}}
32-
<div class="item" data-id="{{$element.BoardType}}" data-value="{{$element.BoardType}}">{{ctx.Locale.Tr ctx.Locale.Translation}}</div>
32+
<div class="item" data-id="{{$element.BoardType}}" data-value="{{$element.BoardType}}">{{ctx.Locale.Tr $element.Translation}}</div>
3333
{{end}}
3434
</div>
3535
</div>
@@ -43,12 +43,12 @@
4343
{{range $element := .CardTypes}}
4444
{{if or (eq $.card_type $element.CardType) (and (not $.PageIsEditProjects) (eq $element.CardType 1))}}
4545
<input type="hidden" name="card_type" value="{{$element.CardType}}">
46-
<div class="default text">{{ctx.Locale.Tr ctx.Locale.Translation}}</div>
46+
<div class="default text">{{ctx.Locale.Tr $element.Translation}}</div>
4747
{{end}}
4848
{{end}}
4949
<div class="menu">
5050
{{range $element := .CardTypes}}
51-
<div class="item" data-id="{{$element.CardType}}" data-value="{{$element.CardType}}">{{ctx.Locale.Tr ctx.Locale.Translation}}</div>
51+
<div class="item" data-id="{{$element.CardType}}" data-value="{{$element.CardType}}">{{ctx.Locale.Tr $element.Translation}}</div>
5252
{{end}}
5353
</div>
5454
</div>

0 commit comments

Comments
 (0)