{% extends "base.html" %} {% block title %}{{ profile_user.username }} {{ 'showcase.title'|t(lang) }}{% endblock %} {% block nav %}{% endblock %} {% block content %}
{% for code, name in available_languages.items() %} {{ name }} {% endfor %}

📮 {{ profile_user.username }} {{ 'showcase.title'|t(lang) }}

{% set sent_visible = [] %} {% set received_visible = [] %} {% for pc in sent_all %} {% if pc.image_front %} {% if sent_visible.append(pc) %}{% endif %} {% endif %} {% endfor %} {% for pc in received_all %} {% if pc.image_front %} {% if received_visible.append(pc) %}{% endif %} {% endif %} {% endfor %} {% set has_content = (sent_visible|length + received_visible|length) > 0 %} {% if not has_content %}

{{ 'showcase.empty'|t(lang) }}

{% else %}
{% if mode == 'flat' %}
{% for pc in sent_visible %}
{% if pc.country_from and pc.country %}{{ pc.country_from|flag }} {{ pc.country_from }} → {{ pc.country|flag }} {{ pc.country }} {% elif pc.country %}{{ pc.country|flag }} {% endif %} {% if pc.send_time %}{{ pc.send_time.strftime('%Y-%m-%d') }}{% endif %}
{% endfor %}
{% else %} {% for g in profile_groups %} {% set g_sent = [] %} {% for pc in g.sent %} {% if pc.image_front %} {% if g_sent.append(pc) %}{% endif %} {% endif %} {% endfor %} {% if g_sent %}

{{ g.profile.nickname }}

{% for pc in g_sent %}
{% if pc.country_from and pc.country %}{{ pc.country_from|flag }} {{ pc.country_from }} → {{ pc.country|flag }} {{ pc.country }} {% elif pc.country %}{{ pc.country|flag }} {% endif %} {% if pc.send_time %}{{ pc.send_time.strftime('%Y-%m-%d') }}{% endif %}
{% endfor %}
{% endif %} {% endfor %} {% endif %}
{% endif %} {% endblock %}