diff options
author | delvh <dev.lh@web.de> | 2023-09-26 15:10:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-26 13:10:29 +0000 |
commit | 1f89a45926a05cdeb6781da60d52082cacc340e2 (patch) | |
tree | 6adb93f04ab0250870f3ff3d0087a5b1b1b8a047 | |
parent | 939d410a932138aee68388cbec0e2a3b5610b4c2 (diff) | |
download | gitea-1f89a45926a05cdeb6781da60d52082cacc340e2.tar.gz gitea-1f89a45926a05cdeb6781da60d52082cacc340e2.zip |
Fix incorrect change from #27231 (#27275)
-rw-r--r-- | templates/projects/new.tmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/projects/new.tmpl b/templates/projects/new.tmpl index 3618edd41b..711dbe842a 100644 --- a/templates/projects/new.tmpl +++ b/templates/projects/new.tmpl @@ -29,7 +29,7 @@ <div class="default text">{{ctx.Locale.Tr "repo.projects.template.desc_helper"}}</div> <div class="menu"> {{range $element := .BoardTypes}} - <div class="item" data-id="{{$element.BoardType}}" data-value="{{$element.BoardType}}">{{ctx.Locale.Tr ctx.Locale.Translation}}</div> + <div class="item" data-id="{{$element.BoardType}}" data-value="{{$element.BoardType}}">{{ctx.Locale.Tr $element.Translation}}</div> {{end}} </div> </div> @@ -43,12 +43,12 @@ {{range $element := .CardTypes}} {{if or (eq $.card_type $element.CardType) (and (not $.PageIsEditProjects) (eq $element.CardType 1))}} <input type="hidden" name="card_type" value="{{$element.CardType}}"> - <div class="default text">{{ctx.Locale.Tr ctx.Locale.Translation}}</div> + <div class="default text">{{ctx.Locale.Tr $element.Translation}}</div> {{end}} {{end}} <div class="menu"> {{range $element := .CardTypes}} - <div class="item" data-id="{{$element.CardType}}" data-value="{{$element.CardType}}">{{ctx.Locale.Tr ctx.Locale.Translation}}</div> + <div class="item" data-id="{{$element.CardType}}" data-value="{{$element.CardType}}">{{ctx.Locale.Tr $element.Translation}}</div> {{end}} </div> </div> |