{% if _cfg("public-income") == "yes" %}
{% set total_sum = recurring_sum + patreon_sum + lp_sum + gh_sum %} {% set total_count = recurring_count + patreon_count + lp_count + gh_count %} {% if _cfg("goal") %} {% set goal = int(_cfg("goal")) %} {% if goal < total_sum %} {# Make the graph still make sense if we exceeded the goal #} {% set adjusted_goal = total_sum %} {% else %} {% set adjusted_goal = goal %} {% endif %} {% set recurring_progress = recurring_sum / adjusted_goal %} {% set patreon_progress = patreon_sum / adjusted_goal %} {% set lp_progress = lp_sum / adjusted_goal %} {% set gh_progress = gh_sum / adjusted_goal %} {% set progress = total_sum / goal %}
{{ currency.amount("{:.0f}".format(recurring_sum / 100)) }}
{{ currency.amount("{:.0f}".format(patreon_sum / 100)) }}
{{ currency.amount("{:.0f}".format(lp_sum / 100)) }}
{{ currency.amount("{:.0f}".format(gh_sum / 100)) }}
{% endif %}
{% if patreon_count or lp_count %}

{{ currency.amount("{:.2f}".format(recurring_sum / 100)) }}/mo via {{ domain }} ({{ recurring_count }} supporter{{ "s" if recurring_count != 1 else "" }})

{% if patreon_count %}

{{ currency.amount("{:.2f}".format(patreon_sum / 100)) }}/mo via Patreon ({{ patreon_count }} supporter{{ "s" if patreon_count != 1 else "" }})

{% endif %} {% if lp_count %}

{{ currency.amount("{:.2f}".format(lp_sum / 100)) }}/mo via Liberapay ({{ lp_count }} supporter{{ "s" if lp_count != 1 else "" }})

{% endif %} {% if gh_count %}

{{ currency.amount("{:.2f}".format(gh_sum / 100)) }}/mo via GitHub ({{ gh_count }} supporter{{ "s" if lp_count != 1 else "" }})

{% endif %} {% endif %} {% if goal %}

{{ currency.amount("{:.2f}".format(total_sum / 100))}}/mo of {{ currency.amount("{:.2f}".format(goal / 100)) }}/mo goal

{% else %}

Supported with {{ currency.amount("{:.2f}".format(total_sum / 100)) }} from {{ total_count }} supporters!

{% endif %}
{% include "goal-summary.html" %}
{% endif %}