Another attempt at getting the trade flipping and collapsing looking correct
This commit is contained in:
parent
7c62c57433
commit
37d8bd5981
7 changed files with 386 additions and 233 deletions
|
|
@ -38,13 +38,12 @@ def render_trade_offer(context, offer):
|
|||
'rarity_icon': offer.rarity_icon,
|
||||
'initiated_by_email': offer.initiated_by.user.email,
|
||||
'initiated_by_username': offer.initiated_by.user.username,
|
||||
'initiated_reputation': offer.initiated_by.user.reputation_score,
|
||||
'acceptances': acceptances,
|
||||
'have_cards_available': have_cards_available,
|
||||
'want_cards_available': want_cards_available,
|
||||
'in_game_name': offer.initiated_by.in_game_name,
|
||||
'friend_code': offer.initiated_by.friend_code,
|
||||
'num_cards_available': len(have_cards_available) + len(want_cards_available),
|
||||
'request_path': context.get("request").path,
|
||||
'on_detail_page': context.get("request").path.endswith("trades/"+str(offer.pk)+"/"),
|
||||
}
|
||||
|
||||
@register.inclusion_tag('templatetags/trade_acceptance.html', takes_context=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue