{% extends "base.html" %} {% block title %}{{ _("Inbox") }}{% endblock %} {% block content %} {# ── Mobile card styles (below md = 768px) ── #} {# Scoped to #inbox-page so no other table is affected. #} {# Strategy: CSS-only responsive cards —
| {{ _("Star") }} | {{ _("Subject") }} | {{ _("Status") }} | |||||||
|---|---|---|---|---|---|---|---|---|---|
| {# ID + external link #} {# Product (icon only, tooltip shows name) #} {# Subject + snippet #} |
{# Mobile-only: ID + badges inline above subject #}
#{{ ticket.provider_thread_id or ticket.id }}
{% if not ticket.is_read %}{% endif %}
{% if ticket.has_ai %}psychology{% endif %}
{% if ticket.customer_revenue and ticket.customer_revenue|float > 500 %}{{ _("VIP") }}{% elif ticket.customer_revenue and ticket.customer_revenue|float > 100 %}military_tech{% endif %}
{% if ticket.is_new %}{{ _("New") }}{% endif %}
{% if ticket.is_presale %}{{ _("Pre-sale") }}{% endif %}
{% if ticket.is_autoresponded %}{{ _("Auto-replied") }}{% endif %}
{% if ticket.customer_website %}language{{ (ticket.customer_website | replace('https://', '') | replace('http://', '')).split('/')[0] }}{% endif %}
{{ ticket.subject }}
{% if ticket.customer_website %}
language{{ (ticket.customer_website | replace('https://', '') | replace('http://', '')).split('/')[0] }}
{% endif %}
{% if ticket.latest_topic_label %}
{{ ticket.latest_topic_label }}
{% endif %}
{% if ticket.last_snippet %}
{{ ticket.last_snippet }} {% endif %} |
{# Last message preview #}
{# PS Version #}
{# Status badge #}
{% if ticket.is_review_request and ticket.status == 'closed' %} favorite{{ _("Thanks") }} {% elif ticket.status == 'open' %} {{ _("Open") }} {% elif ticket.status == 'in_progress' %} {{ _("In Progress") }} {% elif ticket.status == 'waiting_customer' %} {{ _("Waiting") }} {% elif ticket.status == 'answered' %} check_circle{{ _("Answered") }} {% elif ticket.status == 'closed' %} {{ _("Closed") }} {% else %} {{ ticket.status }} {% endif %} | {# Priority badge #} {# Support status #} {# Last activity #}|||||||
|
{% if not has_api_key and not is_filtered %}
key
{{ _("Connect your PrestaShop Addons account") }} {{ _("Import your support threads by linking your Addons API key.") }} {{ _("Set up Addons integration →") }} {% else %} {{ empty_state.icon }}{{ empty_state.title }} {{ empty_state.hint }} {% endif %} |
|||||||||
{% trans %}Page {{ page }} of {{ total_pages }}{% endtrans %}