summaryrefslogtreecommitdiff
path: root/views/gemini/village.twig
diff options
context:
space:
mode:
Diffstat (limited to 'views/gemini/village.twig')
-rw-r--r--views/gemini/village.twig33
1 files changed, 25 insertions, 8 deletions
diff --git a/views/gemini/village.twig b/views/gemini/village.twig
index d351eb6..d448020 100644
--- a/views/gemini/village.twig
+++ b/views/gemini/village.twig
@@ -57,6 +57,27 @@ Canceled
{% endfor %}
{% endif %}
+{% if events['SendResources'] %}
+## Send Resources
+{% for event in events['SendResources'] %}
+### {{ village.get(event.source).name }} -> {{ village.get(event.destination).name }}
+Wood: {{ event.wood }}
+Clay: {{ event.clay }}
+Iron: {{ event.iron }}
+Food: {{ event.food }}
+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
@@ -120,15 +141,11 @@ Travel Time: {{ unit.getTravelTime(unit, village.getDistance(unit.getHomeVillage
{% include 'send-units/01-units.twig' %}
+{% if village.canSendResources(village) %}
# Send Resources
-TODO
-* list possible resource types
-=> /village/{{ village.x }}/{{ village.y }}/send-resources/type/wood Wood
-=> /village/{{ village.x }}/{{ village.y }}/send-resources/type/clay Clay
-=> /village/{{ village.x }}/{{ village.y }}/send-resources/type/iron Iron
-=> /village/{{ village.x }}/{{ village.y }}/send-resources/type/food Food
-* list possible villages
-* send INPUT request for amount
+{% include 'send-resources/01-resource-types.twig' %}
+{% endif %}
+
{% include 'footer.twig' %}