summaryrefslogtreecommitdiff
path: root/views/village.twig
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-11-29 11:03:15 +0100
committerDaniel Weipert <code@drogueronin.de>2023-11-29 11:03:15 +0100
commitfa9096c0ab521aae45cab6c48a54290d14a221b9 (patch)
tree61466b792c2714848cfea00594456ac06c259c94 /views/village.twig
parent3afcaef927391db23fe23c6c8c26b8960e8dae32 (diff)
event tables
Diffstat (limited to 'views/village.twig')
-rw-r--r--views/village.twig18
1 files changed, 9 insertions, 9 deletions
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 @@
<tbody>
{% for event in events['UpgradeBuilding'] %}
<tr>
- <td>{{ event.data.type }}</td>
+ <td>{{ event.type }}</td>
<td class="timer">
{% include 'components/timer.twig' with { 'time': event.event.time|date('c') } %}
</td>
<td>
- <a class="btn" href="/village/{{ village.x }}/{{ village.y }}/building/{{ event.data.type }}/build/cancel">
+ <a class="btn" href="/village/{{ village.x }}/{{ village.y }}/building/UpgradeBuilding/build/cancel">
Cancel
</a>
</td>
@@ -114,7 +114,7 @@
<tbody>
{% for event in events['TrainUnits'] %}
<tr>
- <td>{{ event.data.type }}</td>
+ <td>{{ event.type }}</td>
<td class="timer">
{% include 'components/timer.twig' with { 'time': event.event.time|date('c') } %}
</td>
@@ -146,16 +146,16 @@
<tbody>
{% for event in events['SendUnits'] %}
<tr>
- <td>{{ event.data.type }}</td>
- <td>{{ event.data.unit }}</td>
- <td>{{ event.data.amount }}</td>
- <td>{{ village.get(event.data.source).name }}</td>
- <td>{{ village.get(event.data.destination).name }}</td>
+ <td>{{ event.type }}</td>
+ <td>{{ event.unit }}</td>
+ <td>{{ event.amount }}</td>
+ <td>{{ village.get(event.source).name }}</td>
+ <td>{{ village.get(event.destination).name }}</td>
<td class="timer">
{% include 'components/timer.twig' with { 'time': event.event.time|date('c') } %}
</td>
<td>
- {% if event.data.cancel %}
+ {% if event.isCanceled %}
Canceled
{% else %}
{% if event.event.villageId == village.id %}