{% extends "indy_hub/base.html" %} {% load i18n %} {% load static %} {% load humanize %} {% block page_title %}{% trans "My Copy Requests" %}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{{ metrics.open|default:0 }}
{% trans "Waiting for builders" %}
{% trans "Requests with no accepted offers yet." %}
{{ metrics.action_required|default:0 }}
{% trans "Your action" %}
{% trans "Review conditional offers waiting for approval." %}
{{ metrics.awaiting_delivery|default:0 }}
{% trans "In delivery" %}
{% trans "A builder accepted—awaiting handover." %}
{{ metrics.delivered|default:0 }}
{% trans "Completed" %}
{% trans "Deliveries marked as finished." %}
{% if my_requests %}
{% for req in my_requests %} {% if not req.is_history %}
{{ req.type_name }}

{{ req.type_name }}

{{ req.created_at|naturaltime }}

{{ req.status_label }}
ME {{ req.material_efficiency }} TE {{ req.time_efficiency }}
{% trans "Copies" %} {{ req.copies_requested }}
{% trans "Runs" %} {{ req.runs_requested }}

{{ req.status_hint }}

{% if req.accepted_offer %}
{% blocktrans with builder=req.accepted_offer.owner_username %}Accepted by {{ builder }}{% endblocktrans %} {% if req.accepted_offer.message %}

“{{ req.accepted_offer.message }}”

{% endif %}
{% elif req.cond_accepted %}
{% blocktrans with builder=req.cond_accepted.builder_label %}Conditional offer accepted from {{ builder }}{% endblocktrans %}

{% trans "Conversation archived. Check previous chat messages if needed." %}

{% include "indy_hub/includes/chat_preview.html" with preview=req.cond_accepted.chat.preview %} {% endif %} {% if req.cond_waiting_builder %}
{% blocktrans with builder=req.cond_waiting_builder.builder_label %}You accepted {{ builder }}'s terms. Waiting for their confirmation.{% endblocktrans %}
{% include "indy_hub/includes/chat_preview.html" with preview=req.cond_waiting_builder.chat.preview %} {% endif %} {% if req.cond_offers %} {% with cond_count=req.cond_offers|length %}

{% blocktrans count cond_count=cond_count %} {{ cond_count }} conditional offer awaiting review {% plural %} {{ cond_count }} conditional offers awaiting review {% endblocktrans %}

{% for offer in req.cond_offers %}

{% trans "Review the conversation, then accept or decline via the chat actions." %}

{% include "indy_hub/includes/chat_preview.html" with preview=offer.chat.preview %}
{% endfor %}
{% endwith %} {% endif %} {% if req.delivered %}
{% trans "Delivery confirmed. Blueprints are in your hands." %}
{% endif %}
{% if req.chat_actions %} {% for action in req.chat_actions %}
{% if action.chat.last_message_display %} {% blocktrans with timestamp=action.chat.last_message_display %}Last message {{ timestamp }}{% endblocktrans %} {% endif %}
{% endfor %} {% endif %} {% if req.can_cancel %}
{% csrf_token %}
{% endif %}
{% if req.can_cancel %} {% endif %}
{% endif %} {% endfor %}
{% else %}

{% trans "No copy requests yet" %}

{% trans "Submit your first request to see progress updates here." %}

{% trans "Browse available blueprints" %}
{% endif %}
{% if history_requests %}
{% for item in history_requests %}

{{ item.type_name }}

{{ item.status_label }}

ME {{ item.material_efficiency }} • TE {{ item.time_efficiency }} · {% blocktrans with copies=item.copies_requested runs=item.runs_requested %}{{ copies }} copies, {{ runs }} runs{% endblocktrans %}

{% if item.closed_at %}

{% blocktrans with timestamp=item.closed_at|naturaltime %}Closed {{ timestamp }}{% endblocktrans %}

{{ item.closed_at|date:"Y-m-d H:i" }} {% trans "EVE time" %}

{% endif %}
{% endfor %}
{% else %}

{% trans "History is empty" %}

{% trans "Delivered requests will appear here for easy reference." %}

{% endif %}
{% block indy_hub_global_modals %} {{ block.super }} {% include "indy_hub/includes/bp_chat_modal.html" %} {% endblock %} {% endblock %} {% block extra_javascript %} {{ block.super }} {% endblock %}