{% load humanize markup icons %} {% load url from future %} {% for plan in matrix.headings %} {{ plan.name }} {% if not upgrade and not selected_plan %}
{% if not plan.price_monthly %} Free {% else %} {{ plan.price_monthly }} per month
or {{ plan.price_yearly }} per year
{% endif %}
{% endif %} {% endfor %}
{% for row in matrix.rows %} {% for column in row.columns %} {% if row.boolean %} {% if column.value %}✓{% else %}✗{% endif %} {% elif column.value > -1 %} {{ column.value|capfirst|intcomma }} {% else %} Unlimited {% endif %} {% endfor %} {% endfor %} {% if not upgrade and not selected_plan %} {% for plan in matrix.headings %} {% if not upgrade %} {% icon 'user' 'white' %} {% ifnotequal selected_plan.pk plan.pk %}Sign up{% else %}Selected{% endifnotequal %} {% else %} {% icon 'share-alt' 'white' %} Upgrade {% endif %} {% endfor %} {% else %} {% for plan in matrix.headings %} {% endfor %} {% endif %}

{{ row.heading }}

{% if not upgrade %}
{{ row.description|markdown }}
{% endif %}
{% if not plan.price_monthly %} Free {% else %} {{ plan.price_monthly }} {% endif %}