Skip to content

Commit e6e602f

Browse files
authored
1 parent b46c46f commit e6e602f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/projects/new.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<input type="hidden" name="board_type" value="{{.type}}">
3939
<div class="default text">{{.locale.Tr "repo.projects.template.desc_helper"}}</div>
4040
<div class="menu">
41-
{{range $element := .ProjectTypes}}
41+
{{range $element := .BoardTypes}}
4242
<div class="item" data-id="{{$element.BoardType}}" data-value="{{$element.BoardType}}">{{$.locale.Tr $element.Translation}}</div>
4343
{{end}}
4444
</div>

templates/repo/projects/new.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<div class="ui selection dropdown">
5555
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
5656
{{range $element := .CardTypes}}
57-
{{if or (eq $.card_type $element.CardType) (and (not $.card_type) (eq $element.CardType 2))}}
57+
{{if or (eq $.card_type $element.CardType) (and (not $.PageIsEditProjects) (eq $element.CardType 1))}}
5858
<input type="hidden" name="card_type" value="{{$element.CardType}}">
5959
<div class="default text">{{$.locale.Tr $element.Translation}}</div>
6060
{{end}}

0 commit comments

Comments
 (0)