mtg-web/templates/cards/view.html

45 lines
1.5 KiB
HTML
Raw Normal View History

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">
{% include 'cards/manacost.html' %}
</span>
</div>
<div class="picture"></div>
<div class="info">
<span class="type">
{{ card.type|title }}
&mdash;
{% 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>
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 %}