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.

46 lines
1.2 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. {{ tx.credit_card.card_type }} ending in {{ tx.credit_card.last_4 }}
  18. </td>
  19. <td>
  20. {% if tx.currency_iso_code == "USD" %}
  21. ${{ tx.amount }}
  22. {% elif tx.currency_iso_code == "EUR" %}
  23. €{{ tx.amount }}
  24. {% else %}
  25. {{ tx.currency_iso_code }} {{ tx.amount }}
  26. {% endif %}
  27. </td>
  28. <td><code>{{ tx.status }}</code></td>
  29. <td>
  30. <a href="{% url 'hc-invoice' tx.id %}">View Invoice</a>
  31. </td>
  32. </tr>
  33. {% empty %}
  34. <tr>
  35. <td colspan="5">
  36. No past transactions to display here
  37. </td>
  38. </tr>
  39. {% endfor%}
  40. </table>
  41. {% endblock %}