{% extends 'base.html' %} {% import 'macros/fab_card_list_item.html' as card_list_item %} {% block title %} {{ SITENAME }} - {{ article.title }} {% endblock %} {% block extra_css %} {% endblock extra_css %} {% block container %}

{{ article.title }} ({{ article.format }})

{% if article.fabdb_url %}
View deck on FaBDB.net
{% endif %}

Main Deck

Hero

    {{ card_list_item.print(article.hero, USE_EXTERNAL_LINKS) }}

Weapons ({{ article.weapons|length }})

    {% for card in article.weapons %} {{ card_list_item.print(card, USE_EXTERNAL_LINKS) }} {% endfor %}

Equipment ({{ article.equipment|length }})

    {% for card in article.equipment %} {{ card_list_item.print(card, USE_EXTERNAL_LINKS) }} {% endfor %}
{% set ns = namespace(redpitch=0, yellowpitch=0, bluepitch=0, nopitch=0, cardcount=0) %} {% for card in article.cards -%} {% set ns.cardcount = ns.cardcount + card.count|int -%} {% if card.stats.resource|string == "1" -%} {% set ns.redpitch = ns.redpitch + card.count|int -%} {% elif card.stats.resource|string == "2" -%} {% set ns.yellowpitch = ns.yellowpitch + card.count|int -%} {% elif card.stats.resource|string == "3" -%} {% set ns.bluepitch = ns.bluepitch + card.count|int -%} {% else -%} {% set ns.nopitch = ns.nopitch + card.count|int -%} {% endif %} {% endfor %}

Other Cards ({{ ns.cardcount }})

{{ ns.redpitch }}    {{ ns.yellowpitch }}    {{ ns.bluepitch }}    {{ ns.nopitch }}

    {% for card in article.cards %} {{ card_list_item.print(card, USE_EXTERNAL_LINKS) }} {% endfor %}

Visual

{{ card_list_item.card_image(article.hero, USE_EXTERNAL_LINKS, '') }}
{% for card in article.weapons|sort(attribute='name') %} {{ card_list_item.card_image(card, USE_EXTERNAL_LINKS, "fab-overview-position-" + loop.index|string) }} {% endfor %}
{% for card in article.equipment|sort(attribute='name') %} {{ card_list_item.card_image(card, USE_EXTERNAL_LINKS, "fab-overview-position-" + loop.index|string) }} {% endfor %}
{% for stack in article.stacks %}
{% for item in stack %} {{ card_list_item.card_image(article.cards[item], USE_EXTERNAL_LINKS, "fab-overview-position-" + loop.index|string) }} {% endfor %}
{% endfor %}
{% endblock %} {% block extra_js %} {% endblock %}