{% extends "indy_hub/base.html" %} {% load i18n %} {% load static %} {% load humanize %} {% block page_title %}{% trans "Material Exchange History" %}{% endblock page_title %} {% block extra_css %}
{% endblock extra_css %} {% block content %}

## {% trans "Closed Orders History" %}

{% trans "Completed, rejected and cancelled contracts" %}

{% trans "Back to Admin" %}

##### {% trans "Sell Orders" %}

{{ sell_history|length }}
{% if sell_history %}

{% trans "Ref" %} | {% trans "Seller" %} | {% trans "Total" %} | {% trans "Status" %} | {% trans "Date" %}
--- | --- | --- | --- | ---
{% for order in sell_history %}
{{ order.order_reference }} | {{ order.seller.username }} | {{ order.total_price|floatformat:0|intcomma }} ISK | {{ order.get_status_display }} | {{ order.created_at|date:"Y-m-d H:i" }}
{% endfor %}

{% else %}

{% trans "No closed sell orders." %}

{% endif %}

##### {% trans "Buy Orders" %}

{{ buy_history|length }}
{% if buy_history %}

{% trans "Ref" %} | {% trans "Buyer" %} | {% trans "Total" %} | {% trans "Status" %} | {% trans "Date" %}
--- | --- | --- | --- | ---
{% for order in buy_history %}
{{ order.order_reference }} | {{ order.buyer.username }} | {{ order.total_price|floatformat:0|intcomma }} ISK | {{ order.get_status_display }} | {{ order.created_at|date:"Y-m-d H:i" }}
{% endfor %}

{% else %}

{% trans "No closed buy orders." %}

{% endif %}
{% endblock content %}