diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-01-11 13:15:02 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-01-11 13:15:02 +0100 |
commit | 09caff2b2a06d1f8ac8203567035a21c612165f9 (patch) | |
tree | 999be04ff0a418a33e438be9befc8c9297e383f4 /views/gemini/village.twig | |
parent | 6301f63bd348109b8693a922f02e16d49205a8fd (diff) |
send resources
Diffstat (limited to 'views/gemini/village.twig')
-rw-r--r-- | views/gemini/village.twig | 20 |
1 files changed, 18 insertions, 2 deletions
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 |