File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
views/partials/deck-manager Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,6 @@ func DeckManagerControllers(app *fiber.App){
129
129
}
130
130
}
131
131
if ! deckCards [i ].IsLegal && ! deckCards [i ].InSideboard {
132
- println (deckCards [i ].Name )
133
132
deck .IsLegal = false
134
133
}
135
134
}
@@ -648,7 +647,6 @@ func DeckManagerControllers(app *fiber.App){
648
647
}
649
648
case "commander" :
650
649
if ! cards [i ].LegalCommander {
651
- println (cards [i ].Name )
652
650
metadata .IsLegal = false
653
651
}
654
652
case "oathbreaker" :
Original file line number Diff line number Diff line change 1
- {{ if and (not .Deck.IsLegal) (ne .Deck.Gamemode "") }}
1
+ {{ if eq .Deck.Gamemode "" }}
2
+ < span
3
+ class ="px-0.75 inline-block font-sm font-grey-300 "
4
+ style ="background-color:hsl(var(--grey-400-hsl)/0.1);height:24px;line-height:24px;border-radius:12px; "
5
+ hx-get ="/partials/deck-manager/legality/{{ .Deck.Id }} "
6
+ hx-trigger ="deckUpdated from:body "
7
+ hx-swap ="outerHTML "
8
+ > Missing restrictions</ span >
9
+ {{ else if not .Deck.IsLegal }}
2
10
< span
3
11
class ="px-0.75 inline-block font-sm font-red-400 "
4
12
style ="background-color:hsl(var(--red-400-hsl)/0.05);height:24px;line-height:24px;border-radius:12px; "
You can’t perform that action at this time.
0 commit comments