{% macro product_list(cfg, products, show_subsidized=False) %} {% set ns = namespace(any_subsidized=False) %} {% for p in products %} {% if p.subsidized %} {% set ns.any_subsidized = True %} {% endif %} {% endfor %} {% if not ns.any_subsidized %} {% set show_subsidized = False %} {% endif %} {% for product in products %} {# Placeholder price; updated by javascript #} {% set price = product.prices[0] %} {% if not product.subsidized or show_subsidized %}

{{product.name}}

{% if product.subsidized %}

A reduced-rate plan available to users who cannot pay the standard rates. Includes access to all features.

{% else %}

All plans include access to all features.

{% endif %}
${{"{:.0f}".format(price.amount / 100)}}/month + tax
{% endif %} {% else %}
Warning: No products configured in the database. For development purposes, see contrib/default-products.sql. For production use, see hut admin products -h.
{% endfor %} {% if show_subsidized %}
If the subsidized price is still too much for you, for any reason, including your student or employment status, an unfavorable exchange rate, or any other reasonable cause, you are eligible for financial aid. Email us your username and an explanation of your financial situation to apply.

Too much? Free and subsidized plans are available for users who cannot pay the standard prices.

{% endif %} {% endmacro %}