{% extends "indy_hub/base.html" %} {% load i18n %} {% load static %} {% load humanize %} {% block page_title %}{% trans "Material Exchange" %}{% endblock page_title %} {% block extra_css %} {% endblock extra_css %} {% block content %}
{% trans "Hub Location" %}: {% if config.structure_name %} {{ config.structure_name }} {% else %} {% blocktrans with location=config.structure_id %}{{ location }}{% endblocktrans %} {% endif %}
{% trans "Sell to Hub" %}
{{ pending_sell_orders|intcomma }} {% trans "pending" %}

{% trans "Sell your materials to the Hub, prices based on Jita." %}

{% trans "Start Selling" %}
{% trans "Buy from Hub" %}
{{ pending_buy_orders|intcomma }} {% trans "pending" %}

{% trans "Purchase materials from the Hub stock without going to Jita." %}

{% trans "Browse Stock" %}
{% trans "Your Active Orders" %}
{% trans "My Orders History" %}
{% if recent_orders %}
{% for order in recent_orders %}
{% if order.order_kind == 'sell' %}{% trans "Sell" %}{% else %}{% trans "Buy" %}{% endif %} · {{ order.order_reference }} {% if order.status == 'anomaly' or order.status == 'anomaly_rejected' %} {% trans "Anomaly" %} {% endif %}
{% for item in order.items.all %} {{ item.type_name }}{% if not forloop.last %}, {% endif %} {% endfor %}
{% if order.progress_active_width %} {% endif %}
{{ order.total_price|floatformat:0|intcomma }} ISK {% url 'indy_hub:material_exchange_index' as exchange_index %} {% if order.order_kind == 'sell' %} {% else %} {% endif %}
{% endfor %}
{% else %}

{% trans "No active orders." %}

{% endif %}
{% if can_admin %} {% with sell_count=admin_sell_orders|length buy_count=admin_buy_orders|length %} {% with active_admin_orders=sell_count|add:buy_count %}
{% trans "View History" %}
{% trans "Sell Orders" %}
{% if admin_sell_orders %}
{% for order in admin_sell_orders %}
{% if order.order_kind == 'sell' %}{% trans "Sell" %}{% else %}{% trans "Buy" %}{% endif %} · {{ order.order_reference }} {% if order.status == 'anomaly' or order.status == 'anomaly_rejected' %} {% trans "Anomaly" %} {% endif %} {% trans "User" %}: {{ order.seller_display_name|default:order.seller.username }} {% for item in order.items.all %} {{ item.type_name }}{% if not forloop.last %}, {% endif %} {% endfor %} {% if order.progress_active_width %} {% endif %}
{{ order.total_price|floatformat:0|intcomma }} ISK
{% url 'indy_hub:material_exchange_index' as exchange_index %} {% trans "Details" %} {% if order.status not in 'completed,rejected,cancelled' %}
{% csrf_token %}
{% endif %}
{% endfor %}
{% else %}
{% trans "No sell orders found." %}
{% endif %}
{% trans "Buy Orders" %}
{% if admin_buy_orders %}
{% for order in admin_buy_orders %}
{% if order.order_kind == 'sell' %}{% trans "Sell" %}{% else %}{% trans "Buy" %}{% endif %} · {{ order.order_reference }} {% if order.status == 'anomaly' or order.status == 'anomaly_rejected' %} {% trans "Anomaly" %} {% endif %} {% trans "User" %}: {{ order.buyer_display_name|default:order.buyer.username }} {% for item in order.items.all %} {{ item.type_name }}{% if not forloop.last %}, {% endif %} {% endfor %} {% if order.progress_active_width %} {% endif %}
{{ order.total_price|floatformat:0|intcomma }} ISK
{% url 'indy_hub:material_exchange_index' as exchange_index %} {% trans "Details" %} {% if order.status not in 'completed,rejected,cancelled' %}
{% csrf_token %}
{% endif %}
{% endfor %}
{% else %}
{% trans "No buy orders found." %}
{% endif %}
{% endwith %} {% endwith %} {% endif %}
{% endblock content %}