Tap symbol! (Poorly)
This commit is contained in:
parent
f358941909
commit
80516e21d5
2 changed files with 20 additions and 15 deletions
|
@ -13,6 +13,8 @@ def prettify_mana(text):
|
|||
if not match:
|
||||
break
|
||||
text = text[:match.start()] + render_to_string('cards/manacost.html', {'cost': ManaCost(str(match.group(0)))}) + text[match.end():]
|
||||
|
||||
text = text.replace('{T}', render_to_string('cards/manacost.html', {'cost': 'T'}))
|
||||
return text
|
||||
|
||||
|
||||
|
|
|
@ -1,17 +1,20 @@
|
|||
{% 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 %}
|
||||
{% if cost == 'T' %}
|
||||
<span class="mana symbol">↷</span>
|
||||
{% else %}
|
||||
{% 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 %}
|
||||
{% endif %}
|
||||
{% for i in cost.snow|get_range %}
|
||||
{# use the unicode snowflake symbol #}
|
||||
<span class="mana symbol">❄</span>
|
||||
{% endfor %}
|
||||
{% for type, mana in cost.mana.mana.items %}
|
||||
{% endfor %}
|
||||
{% for type, mana in cost.mana.mana.items %}
|
||||
{% for i in mana|get_range %}
|
||||
<span class="mana symbol {{ type }}"></span>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue