diff --git a/resources/briefing/templates/briefingtemplate_CN.j2 b/resources/briefing/templates/briefingtemplate_CN.j2 index 505d7122..5b4e38cc 100644 --- a/resources/briefing/templates/briefingtemplate_CN.j2 +++ b/resources/briefing/templates/briefingtemplate_CN.j2 @@ -73,6 +73,7 @@ DCS Liberation 第 {{ game.turn }} 回合 --------------------------------------------------{% endfor %} +{%- if allied_flights_by_departure|length > 0 %} 其他友军单位飞行计划: ==================== {% for dep in allied_flights_by_departure %} @@ -82,7 +83,9 @@ DCS Liberation 第 {{ game.turn }} 回合 {{ flight.flight_type }} {{ flight.units[0].type }} x {{flight.size}}, departing in {{ flight.departure_delay }}, {{ flight.package.target.name}} {% endfor %} {% endfor %} +{% endif %} +{%- if dynamic_runways|length > 0 %} 航母及FARPs: ==================== {% for runway in dynamic_runways %} @@ -94,12 +97,17 @@ TACAN : {{ runway.tacan }} {{ runway.tacan_callsign }} {% endif %} {% endfor %} +{% endif %} +{%- if awacs|length > 0 %} AWACS: ==================== {% for i in awacs %}{{ i.callsign }} -- 频率 : {{i.freq.mhz}} {% endfor %} +{% endif %} +{%- if jtacs|length > 0 %} JTACS [F-10 菜单] : ==================== {% for jtac in jtacs %}前线 {{ jtac.region }} -- 激光编码 : {{ jtac.code }} {% endfor %} +{% endif %} diff --git a/resources/briefing/templates/briefingtemplate_EN.j2 b/resources/briefing/templates/briefingtemplate_EN.j2 index 7ec4341d..ce5b7220 100644 --- a/resources/briefing/templates/briefingtemplate_EN.j2 +++ b/resources/briefing/templates/briefingtemplate_EN.j2 @@ -73,6 +73,7 @@ Your flights: --------------------------------------------------{% endfor %} +{%- if allied_flights_by_departure|length > 0 %} Planned ally flights: ==================== {% for dep in allied_flights_by_departure %} @@ -82,7 +83,9 @@ Planned ally flights: {{ flight.flight_type }} {{ flight.units[0].type }} x {{flight.size}}, departing in {{ flight.departure_delay }}, {{ flight.package.target.name}} {% endfor %} {% endfor %} +{% endif %} +{%- if dynamic_runways|length > 0 %} Carriers and FARPs: ==================== {% for runway in dynamic_runways %} @@ -94,12 +97,17 @@ TACAN : {{ runway.tacan }} {{ runway.tacan_callsign }} {% endif %} {% endfor %} +{% endif %} +{%- if awacs|length > 0 %} AWACS: ==================== {% for i in awacs %}{{ i.callsign }} -- Freq : {{i.freq.mhz}} {% endfor %} +{% endif %} +{%- if jtacs|length > 0 %} JTACS [F-10 Menu] : ==================== {% for jtac in jtacs %}Frontline {{ jtac.region }} -- Code : {{ jtac.code }} -{% endfor %} \ No newline at end of file +{% endfor %} +{% endif %} \ No newline at end of file diff --git a/resources/briefing/templates/briefingtemplate_FR.j2 b/resources/briefing/templates/briefingtemplate_FR.j2 index 993d417c..61cf6b2e 100644 --- a/resources/briefing/templates/briefingtemplate_FR.j2 +++ b/resources/briefing/templates/briefingtemplate_FR.j2 @@ -73,6 +73,7 @@ Vols : --------------------------------------------------{% endfor %} +{%- if allied_flights_by_departure|length > 0 %} Vols alliés prévus : ==================== {% for dep in allied_flights_by_departure %} @@ -82,7 +83,9 @@ Vols alliés prévus : {{ flight.flight_type }} {{ flight.units[0].type }} x {{flight.size}}, départ dans {{ flight.departure_delay }}, {{ flight.package.target.name}} {% endfor %} {% endfor %} +{% endif %} +{%- if dynamic_runways|length > 0 %} Porte-avions et FARPS : ======================= {% for runway in dynamic_runways %} @@ -92,14 +95,19 @@ RADIO : {{ runway.atc }} TACAN : {{ runway.tacan }} {{ runway.tacan_callsign }} {% if runway.icls %}Channel ICLS : {{ runway.icls }} {% endif %} +{% endif %} {% endfor %} +{%- if awacs|length > 0 %} AWACS: ==================== {% for i in awacs %}{{ i.callsign }} -- Fréq : {{i.freq.mhz}} {% endfor %} +{% endif %} +{%- if jtacs|length > 0 %} JTACS [Menu F-10] : ==================== {% for jtac in jtacs %}Ligne de front {{ jtac.region }} -- Code : {{ jtac.code }} -{% endfor %} \ No newline at end of file +{% endfor %} +{% endif %} \ No newline at end of file