{% from "addons/macros.html" import price, refund_info %} {% set amo_user = request.amo_user if request.user.is_authenticated() else None %} {% for addon in addons %} {% if show_refunds %} {% set contribs = waffle.switch('marketplace') and contributions.get(addon.pk) %} {% endif %} {% set is_refunded = contribs and addon.is_refunded(request.amo_user) %} {% set is_chargeback = contribs and addon.is_chargeback(request.amo_user) %}