mtg-web/templates/decks/index.html

21 lines
536 B
HTML
Raw Normal View History

2010-09-21 05:49:22 +00:00
{% extends "main.html" %}
2010-09-22 01:37:00 +00:00
{% load math %}
2010-09-21 05:49:22 +00:00
{% block content %}
<h2>Decks</h2>
<ul>
{% for deck in decks %}
2010-09-22 01:37:00 +00:00
<li>
<div class="manabar">
2010-09-22 18:22:21 +00:00
{% for color, count in deck.symbols.items %}
2010-09-22 01:37:00 +00:00
{% if count > 0 %}
2010-09-22 18:22:21 +00:00
<span class="mana {{ color }}" style="width: {% widthratio count deck.symbols.values|getsum 100 %}%"></span>
2010-09-22 01:37:00 +00:00
{% endif %}
{% endfor %}
</div>
<a href="{% url mtgweb.decks.views.detail deck.id %}">{{ deck }}</a>
2010-09-22 01:37:00 +00:00
</li>
{% endfor %}
</ul>
2010-09-21 05:49:22 +00:00
{% endblock %}