{% set active_page = 'edm' %}
{% set legacy_bridge_title = '活動看板已升級' %}
{% set legacy_bridge_kicker = 'MIGRATED CAMPAIGN' %}
{% set legacy_bridge_icon = 'fas fa-bullhorn' %}
{% set legacy_bridge_heading = '請使用新版活動看板' %}
{% set legacy_bridge_body = '舊版 edm_dashboard.html 已停用，正式入口現在由 edm_dashboard_v2.html 與新版響應式表格負責。' %}
{% set legacy_bridge_target = '/edm' %}
{% set legacy_bridge_cta = '開啟活動看板' %}
{% set legacy_bridge_secondary_target = '/festival' %}
{% set legacy_bridge_secondary_cta = '節慶活動' %}
{% set legacy_bridge_meta = 'Legacy guard / edm_dashboard.html' %}
{% extends "ewoooc_base.html" %}

{% block title %}活動看板已升級 - EwoooC{% endblock %}

{% block extra_css %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/page-legacy-bridge.css') }}">
{% endblock %}

{% block content %}
{% include 'components/_legacy_bridge_panel.html' %}
{% set legacy_current = (promo_pages | selectattr('id', 'equalto', current_promo_page) | list | first) if promo_pages is defined else none %}
{% set legacy_current_url = legacy_current.url if legacy_current else legacy_bridge_target %}
<nav class="visually-hidden" aria-label="Legacy EDM sort compatibility">
    <a href="{{ legacy_current_url }}?sort_by=name&amp;order=desc">name desc</a>
    <a href="{{ legacy_current_url }}?sort_by=price&amp;order=desc">price desc</a>
    <a href="{{ legacy_current_url }}?sort_by=remain_qty&amp;order=desc">remain qty desc</a>
</nav>
{% endblock %}
