2024-03-02 17:02:05 +00:00
|
|
|
{% extends "default.html" %}
|
2024-03-02 21:51:15 +00:00
|
|
|
{% block pagetitle %}@{{user.username}}'s Bank Statement{% endblock %}
|
2024-03-02 17:02:05 +00:00
|
|
|
{% block content %}
|
|
|
|
<div class="row justify-content-around">
|
|
|
|
<div class="col h-100">
|
|
|
|
<div class="justify-content-between">
|
2024-03-02 21:51:15 +00:00
|
|
|
<h2 class="font-weight-bolder text-center pt-2 pb-3 d-mob-none">@{{user.username}}'s Bank Statement</h2>
|
|
|
|
<h4 class="font-weight-bolder text-center pt-2 pb-3 d-md-none">@{{user.username}}'s Bank Statement</h4>
|
2024-03-02 17:02:05 +00:00
|
|
|
</div>
|
2024-03-02 17:37:39 +00:00
|
|
|
<div class="rounded border mx-auto" style="max-width:800px">
|
2024-03-02 17:38:28 +00:00
|
|
|
<h5 class="font-weight-bolder text-right pb-0 mr-3">Balance</h2>
|
2024-03-02 17:02:05 +00:00
|
|
|
{% for log in logs %}
|
|
|
|
<div class="modlog-action {% if log.amount > 0 %}bg-green{% else %}bg-red{% endif %} ">
|
|
|
|
<div class="d-flex flex-grow-1 align-items-center">
|
|
|
|
<div class="d-flex align-items-center justify-content-center mr-3 rounded-lg flex-shrink-0" style="width: 32px;height: 32px">
|
2024-03-02 21:38:11 +00:00
|
|
|
<img width="{% if log.currency == 'coins' %}40{% else %}53{% endif %}" alt="{{log.currency}}" class="pl-2" data-bs-toggle="tooltip" data-bs-placement="bottom" src="{{SITE_FULL_IMAGES}}/i/{{log.currency}}.webp?x=7" title="{{log.currency.title()}}">
|
2024-03-02 17:02:05 +00:00
|
|
|
</div>
|
|
|
|
<div class="d-flex align-items-center">
|
|
|
|
<div class="text-muted pl-3">
|
2024-03-02 21:29:23 +00:00
|
|
|
<span><b class="bank-statement-amount">{% if log.amount > 0 %}+{% endif %}{{log.amount}} {{log.currency}}</b> {{log.reason | safe}}</span>
|
2024-03-02 17:02:05 +00:00
|
|
|
<div class="text-gray-500">
|
|
|
|
<span class="log--item-age" data-bs-toggle="tooltip" data-bs-placement="bottom" data-nonce="{{g.nonce}}" data-onmouseover="timestamp(this, '{{log.created_utc}}')">{{log.age_string}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-03-02 21:29:23 +00:00
|
|
|
<span class="ml-auto unbreakable">{{log.balance}} {{log.currency}}</span>
|
2024-03-02 17:02:05 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="p-3">There's nothing here right now.</div>
|
|
|
|
{% endfor %}
|
2024-03-02 17:38:02 +00:00
|
|
|
{% include "pagination.html" %}
|
2024-03-02 17:02:05 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|