mtg-web/templates/cards/manacost.html

17 lines
613 B
HTML

{% load get_range %}
{% if cost.x %}<span class="mana symbol">X</span>{% endif %}
{% if cost.y %}<span class="mana symbol">Y</span>{% endif %}
{% if cost.z %}<span class="mana symbol">Z</span>{% endif %}
{% if cost.any > 0 or cost.converted == 0 %}
<span class="mana symbol">{{ cost.any }}</span>
{% endif %}
{% for i in cost.snow|get_range %}
{# use the unicode snowflake symbol #}
<span class="mana symbol">&#x2744;</span>
{% endfor %}
{% for type, mana in cost.mana.mana.items %}
{% for i in mana|get_range %}
<span class="mana symbol {{ type }}"></span>
{% endfor %}
{% endfor %}