42 lines
1.3 KiB
HTML
42 lines
1.3 KiB
HTML
{% extends "main.html" %}
|
|
|
|
{% block title %}Card: {{ card.name }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="card {{ card.colors|join:" " }}">
|
|
<div class="title">
|
|
<span class="name">{{ card.name|title }}</span>
|
|
<span class="cost">
|
|
{% include 'cards/manacost.html' %}
|
|
</span>
|
|
</div>
|
|
<div class="picture"></div>
|
|
<div class="info">
|
|
<span class="type">
|
|
{{ card.type|title }}
|
|
—
|
|
{% for attr in card.attributes.all %}
|
|
{{ attr|title }}
|
|
{% endfor %}
|
|
</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>
|
|
{% for ability in abilities %}
|
|
<li>{{ ability }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% if card.toughness > '0' %}
|
|
<div class="numbers">
|
|
<span class="power">{{ card.power }}</span> /
|
|
<span class="toughness">{{ card.toughness }}</span>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|