remove trade offer expanding, fix flipping to work with new layout. all cards in trade offer are not expanded
This commit is contained in:
parent
c68d1fb5ec
commit
7c62c57433
11 changed files with 194 additions and 170 deletions
|
|
@ -5,14 +5,14 @@ from django.utils.safestring import mark_safe
|
|||
register = template.Library()
|
||||
|
||||
@register.inclusion_tag("templatetags/card_badge.html")
|
||||
def card_badge(card, quantity=None, static=False):
|
||||
def card_badge(card, quantity=None, expanded=False):
|
||||
return {
|
||||
'quantity': quantity,
|
||||
'style': card.style,
|
||||
'name': card.name,
|
||||
'rarity': card.rarity_icon,
|
||||
'cardset': card.cardset,
|
||||
'static': static,
|
||||
'expanded': expanded,
|
||||
}
|
||||
|
||||
@register.filter
|
||||
|
|
@ -26,6 +26,6 @@ def card_badge_inline(card, quantity=None):
|
|||
'name': card.name,
|
||||
'rarity': card.rarity_icon,
|
||||
'cardset': card.cardset,
|
||||
'static': True,
|
||||
'expanded': True,
|
||||
})
|
||||
return mark_safe(html)
|
||||
Loading…
Add table
Add a link
Reference in a new issue