From fa9096c0ab521aae45cab6c48a54290d14a221b9 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 29 Nov 2023 11:03:15 +0100 Subject: event tables --- views/village.twig | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'views') diff --git a/views/village.twig b/views/village.twig index b843ef4..d2b8a4e 100644 --- a/views/village.twig +++ b/views/village.twig @@ -86,12 +86,12 @@ {% for event in events['UpgradeBuilding'] %} - {{ event.data.type }} + {{ event.type }} {% include 'components/timer.twig' with { 'time': event.event.time|date('c') } %} - + Cancel @@ -114,7 +114,7 @@ {% for event in events['TrainUnits'] %} - {{ event.data.type }} + {{ event.type }} {% include 'components/timer.twig' with { 'time': event.event.time|date('c') } %} @@ -146,16 +146,16 @@ {% for event in events['SendUnits'] %} - {{ event.data.type }} - {{ event.data.unit }} - {{ event.data.amount }} - {{ village.get(event.data.source).name }} - {{ village.get(event.data.destination).name }} + {{ event.type }} + {{ event.unit }} + {{ event.amount }} + {{ village.get(event.source).name }} + {{ village.get(event.destination).name }} {% include 'components/timer.twig' with { 'time': event.event.time|date('c') } %} - {% if event.data.cancel %} + {% if event.isCanceled %} Canceled {% else %} {% if event.event.villageId == village.id %} -- cgit v1.2.3