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.

52 lines
1.4 KiB

  1. {% extends "base.html" %}
  2. {% block title %}Billing History - healthchecks.io{% endblock %}
  3. {% block content %}
  4. <h1>Billing History</h1>
  5. <table class="table">
  6. <tr>
  7. <th>Date</th>
  8. <th>Payment Method</th>
  9. <th>Amount</th>
  10. <th>Status</th>
  11. <th></th>
  12. </tr>
  13. {% for tx in transactions %}
  14. <tr>
  15. <td>{{ tx.created_at }}</td>
  16. <td>
  17. {% if tx.payment_instrument_type == "paypal_account" %}
  18. Paypal from {{ tx.paypal.payer_email }}
  19. {% endif %}
  20. {% if tx.payment_instrument_type == "credit_card" %}
  21. {{ tx.credit_card.card_type }} ending in {{ tx.credit_card.last_4 }}
  22. {% endif %}
  23. </td>
  24. <td>
  25. {% if tx.currency_iso_code == "USD" %}
  26. ${{ tx.amount }}
  27. {% elif tx.currency_iso_code == "EUR" %}
  28. €{{ tx.amount }}
  29. {% else %}
  30. {{ tx.currency_iso_code }} {{ tx.amount }}
  31. {% endif %}
  32. </td>
  33. <td><code>{{ tx.status }}</code></td>
  34. <td>
  35. <a href="{% url 'hc-invoice' tx.id %}">View Invoice</a>
  36. </td>
  37. </tr>
  38. {% empty %}
  39. <tr>
  40. <td colspan="5">
  41. No past transactions to display here
  42. </td>
  43. </tr>
  44. {% endfor%}
  45. </table>
  46. {% endblock %}