diff options
author | Zettat123 <zettat123@gmail.com> | 2023-03-27 13:15:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-27 13:15:41 +0800 |
commit | e6e602fd8d35471f1e2f4a42669a1f17e76e0176 (patch) | |
tree | 783c768112d81eb00c2437ad0ea0c105d37b97f2 /templates/repo/projects | |
parent | b46c46f3a3a0c09ade5a57e1693e2e6a5d07c120 (diff) | |
download | gitea-e6e602fd8d35471f1e2f4a42669a1f17e76e0176.tar.gz gitea-e6e602fd8d35471f1e2f4a42669a1f17e76e0176.zip |
Fix project card preview select and template select (#23684)
Now user cannot set Card Previews when creating a new project.
Before:
https://user-images.githubusercontent.com/15528715/227488883-29bbd636-8b98-45b3-b2f8-de5206b045dc.mp4
After:
https://user-images.githubusercontent.com/15528715/227488976-3447f252-805a-4f18-ae0e-1cddd921dcc3.mp4
Diffstat (limited to 'templates/repo/projects')
-rw-r--r-- | templates/repo/projects/new.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/projects/new.tmpl b/templates/repo/projects/new.tmpl index 20c4d2ebfc..4778279317 100644 --- a/templates/repo/projects/new.tmpl +++ b/templates/repo/projects/new.tmpl @@ -54,7 +54,7 @@ <div class="ui selection dropdown"> {{svg "octicon-triangle-down" 14 "dropdown icon"}} {{range $element := .CardTypes}} - {{if or (eq $.card_type $element.CardType) (and (not $.card_type) (eq $element.CardType 2))}} + {{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">{{$.locale.Tr $element.Translation}}</div> {{end}} |