You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.2 KiB

  1. {% if transactions %}
  2. <table class="table">
  3. <tr>
  4. <th>Date</th>
  5. <th>Payment Method</th>
  6. <th>Amount</th>
  7. <th>Type</th>
  8. <th>Status</th>
  9. </tr>
  10. {% for tx in transactions %}
  11. <tr {% if tx.type == "credit" %}class="text-muted"{% endif %}>
  12. <td title="{{ tx.created_at }}">{{ tx.created_at|date:"N j, Y" }}</td>
  13. <td>
  14. {% if tx.payment_instrument_type == "paypal_account" %}
  15. Paypal from {{ tx.paypal.payer_email }}
  16. {% endif %}
  17. {% if tx.payment_instrument_type == "credit_card" %}
  18. {{ tx.credit_card.card_type }} ending in {{ tx.credit_card.last_4 }}
  19. {% endif %}
  20. </td>
  21. <td>
  22. {% if tx.type == "credit" %}
  23. -{{ tx.amount }} {{ tx.currency_iso_code }}
  24. {% else %}
  25. {{ tx.amount }} {{ tx.currency_iso_code }}
  26. {% endif %}
  27. </td>
  28. <td>{{ tx.type|capfirst }}</td>
  29. <td><code>{{ tx.status }}</code></td>
  30. </tr>
  31. {% endfor%}
  32. </table>
  33. {% else %}
  34. <p class="billing-empty">
  35. No past transactions to display here
  36. </p>
  37. {% endif %}