{% extends "base.html" %} {% from "_helpers.html" import format_currency, render_pagination %} {% set _tx_styles = { 'transfer': 'primary', 'bitcoin': 'warning', 'purchase': 'info', } %} {% block content %} {% for tx in transactions.items %} {% else %} {% endfor %}
User Type Amount Date
{{ tx.user }} {{ tx.type }} {% if not tx.finished %}(processing){% endif %} {% if tx.type == 'transfer' and tx.amount > 0 %} from {{ tx.related_user }} {% elif tx.type == 'transfer' and tx.amount < 0 %} to {{ tx.related }} {% elif tx.type == 'purchase' and tx.product_id %} of product {{ tx.product_id }} {% elif tx.type == 'bitcoin' %} {{ tx.tx_hash|truncate(9) }} {% endif %} {{ format_currency(tx.amount) }} {{ tx.created }}
Nothing to see here...
{{ render_pagination(transactions) }} {% endblock %}