{% extends "main.html" %}
{% load get_range %}
{% load math %}
{% block title %}Deck: {{ deck.name }}{% endblock %}
{% block content %}
{{deck}}
Cards
{% regroup deck.get_cards by card.type as cards %}
{% for group in cards %}
- {{ group.grouper|title }}
{% for included in group.list %}
-
{{ included.count }}x
{{ included.card.name }}
{% with included.card.get_cost as cost %}{% if cost.converted > 0 %}{% include 'cards/manacost.html' %}{% endif %}{% endwith %}
{% endfor %}
{% endfor %}
{% endblock %}