{% extends "base.html" %}
{% from "_helpers.html" import format_currency, render_field, render_submit %}
{% block content %}
{% if not mdb_online %}
Some of the subsystems are misbehaving. Please avoid making payments, unless in absolute need of Mate.
{% endif %}
{% if current_user.is_authenticated %}
Balance {{ format_currency(current_user.amount_available) }} / {{ format_currency(current_user.balance) }}
Transactions {{ current_user.transactions.count() }}
Name | Balance |
{% for user, balance in hallofshame %}
{{ user }} | {{ format_currency(balance) }} |
{% else %}
Wow! Nobody's due! |
{% endfor %}
Name | Amount | Purchases |
{% for user, purchase_amount, purchase_count in hallofaddicts_30d %}
{{ user }} | {{ format_currency(purchase_amount) }} | {{ purchase_count }} |
{% else %}
Huh? |
{% endfor %}
Name | Amount | Purchases |
{% for user, purchase_amount, purchase_count in hallofaddicts %}
{{ user }} | {{ format_currency(purchase_amount) }} | {{ purchase_count }} |
{% else %}
Huh? |
{% endfor %}
Type |
Amount |
Date |
{% for tx in transactions %}
{{ tx.type }} {% if not tx.finished %}(processing){% endif %}
{% if tx.type == 'transfer' and tx.amount > 0 %}
from {{ tx.related }}
{% elif tx.type == 'transfer' and tx.amount < 0 %}
to {{ tx.related }}
{% elif tx.type == 'purchase' and tx.product_id %}
of product {{ tx.product_id }}
{% endif %}
|
{{ format_currency(tx.amount) }} |
{{ tx.created }} |
{% else %}
Nothing to see here... |
{% endfor %}
{% if transactions.count() == 10 %}
See more...
|
{% endif %}
{% endif %}
{{ bottles_purchased * 105 }}mg
Caffeine ingested
{{ bottles_purchased }}
Bottles purchased
Kowalski czuje zapach pieniędzy.
Someone famous
{% endblock %}
{% block tail_js %}
{% endblock %}