2010-09-21 05:49:22 +00:00
|
|
|
{% extends "main.html" %}
|
2010-08-26 03:43:19 +00:00
|
|
|
|
2010-09-21 05:49:22 +00:00
|
|
|
{% block title %}Card: {{ card.name }}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2010-09-22 00:17:20 +00:00
|
|
|
<div class="card {% if card.colors|length > 1 %}gold{% else %}{{ card.colors|join:" " }}{% endif %}">
|
2010-09-21 05:49:22 +00:00
|
|
|
<div class="title">
|
|
|
|
<span class="name">{{ card.name|title }}</span>
|
|
|
|
<span class="cost">
|
2010-09-23 01:26:21 +00:00
|
|
|
{% if cost.converted > 0 %}
|
|
|
|
{% include 'cards/manacost.html' %}
|
|
|
|
{% endif %}
|
2010-09-21 05:49:22 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="picture"></div>
|
|
|
|
<div class="info">
|
|
|
|
<span class="type">
|
|
|
|
{{ card.type|title }}
|
2010-09-22 00:21:49 +00:00
|
|
|
{% if card.attributes.all %}
|
|
|
|
—
|
|
|
|
{% for attr in card.attributes.all %}
|
|
|
|
{{ attr|title }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2010-09-21 05:49:22 +00:00
|
|
|
</span>
|
|
|
|
<span class="rarity {{ card.rarity }}">
|
|
|
|
{% for key, rarity in card.rarities.items %}
|
|
|
|
{% if key == card.rarity %}{{ rarity }}{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="text">
|
|
|
|
<ul>
|
2010-09-22 00:14:10 +00:00
|
|
|
{% autoescape off %}
|
2010-09-21 05:49:22 +00:00
|
|
|
{% for ability in abilities %}
|
|
|
|
<li>{{ ability }}</li>
|
|
|
|
{% endfor %}
|
2010-09-22 00:14:10 +00:00
|
|
|
{% endautoescape %}
|
2010-09-21 05:49:22 +00:00
|
|
|
</ul>
|
2010-08-26 03:43:19 +00:00
|
|
|
</div>
|
2010-09-21 21:21:07 +00:00
|
|
|
{% if card.toughness > '0' %}
|
|
|
|
<div class="numbers">
|
|
|
|
<span class="power">{{ card.power }}</span> /
|
|
|
|
<span class="toughness">{{ card.toughness }}</span>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2010-09-21 05:49:22 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|