{% if not addon.is_premium() %}
{{ _('Your app is not currently accepting payments.') }}

{{ _('Set up payments.') }}

{% else %}

{{ amo.REFUND_STATUSES[amo.REFUND_PENDING] }} ({{ pending.paginator.count }})

{% if not pending.paginator.count %}

{{ _('No pending refunds.') }}

{% else %} {{ base_th() }} {% for refund in pending.object_list %} {{ base_td(refund, amo) }} {% if refund.refund_reason %} {% endif %} {% endfor %}
{{ _('Action') }}
{{ action_form(refund) }}
{{ _('Refund Reason:') }} {{ refund.refund_reason }}
{% endif %}
{{ pending|paginator }}

{{ amo.REFUND_STATUSES[amo.REFUND_APPROVED] }} ({{ approved.paginator.count }})

{% if not approved.paginator.count %}

{{ _('No approved refunds.') }}

{% else %} {{ base_th() }} {% for refund in approved.object_list %} {{ approved_row(refund) }} {% endfor %}
{{ _('Approved') }}
{% endif %}
{{ approved|paginator }}

{{ amo.REFUND_STATUSES[amo.REFUND_APPROVED_INSTANT] }} ({{ instant.paginator.count }})

{% if not instant.paginator.count %}

{{ loc('No instantly approved refunds.') }}

{% else %} {{ base_th() }} {% for refund in instant.object_list %} {{ approved_row(refund) }} {% endfor %}
{{ _('Approved') }}
{% endif %}
{{ instant|paginator }}

{{ amo.REFUND_STATUSES[amo.REFUND_DECLINED] }} ({{ declined.paginator.count }})

{% if not declined.paginator.count %}

{{ loc('No declined refunds.') }}

{% else %} {{ base_th() }} {% for refund in declined.object_list %} {{ base_td(refund, amo) }} {% if refund.rejection_reason %} {% endif %} {% endfor %}
{{ _('Declined') }}
{{ refund.declined|babel_datetime }}
{{ _('Rejection Reason:') }} {{ refund.rejection_reason }}
{% endif %}
{{ declined|paginator }} {% endif %}