From 09caff2b2a06d1f8ac8203567035a21c612165f9 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 11 Jan 2024 13:15:02 +0100 Subject: send resources --- views/gemini/village.twig | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'views/gemini/village.twig') diff --git a/views/gemini/village.twig b/views/gemini/village.twig index 21c480b..02679c1 100644 --- a/views/gemini/village.twig +++ b/views/gemini/village.twig @@ -24,7 +24,7 @@ Storage Capacity: {{ village.getStorage(village.id).getCapacity() }} {% for event in typeEvents %} ### {{ event.type }} Finished: {{ event.event.time | date('c') }} - => /village/{{ village.x }}/{{ village.y }}/building/UpgradeBuilding/build/cancel Cancel + => /event/{{ event.event.id }}/cancel Cancel {% endfor %} {% endfor %} {% endif %} @@ -34,7 +34,7 @@ Storage Capacity: {{ village.getStorage(village.id).getCapacity() }} ### {{ event.type }} Amount: {{ event.amount }} Finished: {{ event.event.time | date('c') }} - => /village/{{ village.x }}/{{ village.y }}/unit/train/cancel Cancel + => /event/{{ event.event.id }}/cancel Cancel {% endfor %} {% endif %} {% if events['SendUnits'] %} @@ -74,6 +74,22 @@ Storage Capacity: {{ village.getStorage(village.id).getCapacity() }} {% endif %} {% endfor %} {% endif %} +{% if events['SendResourcesCarriers'] %} + ## Send Resources Carriers + {% for event in events['SendResourcesCarriers'] %} + ### {{ village.get(event.source).name }} -> {{ village.get(event.destination).name }} + Source: {{ village.get(event.source).name }} + Destination: {{ village.get(event.destination).name }} + Finished: {{ event.event.time | date('c') }} + {% if event.isCanceled %} + Canceled + {% else %} + {% if event.event.villageId == village.id %} + => /event/{{ event.event.id }}/cancel Cancel + {% endif %} + {% endif %} + {% endfor %} +{% endif %} # Buildings -- cgit v1.2.3