summaryrefslogtreecommitdiff
path: root/views/http/villages.twig
blob: d4449cf0c4f34ad443b6294784a9d1f2e2f5d5cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{% extends 'base.twig' %}

{% block main %}
<table>
  <thead>
  <tr>
    <td>Name</td>
    <td>Coordinates</td>
    <td>Wood</td>
    <td>Clay</td>
    <td>Iron</td>
    <td>Food</td>
    <td>Storage</td>
    <td>Satisfaction</td>
  </tr>
  </thead>
  <tbody>
  {% for village in villages %}
    <tr>
      <td>
        <a href="/village/{{ village.x}}/{{ village.y }}">
          {{ village.name }}
        </a>
      </td>
      <td>
          { x: {{ village.x }}, y: {{ village.y }} }
      </td>
      <td>{{ village.wood }}</td>
      <td>{{ village.clay }}</td>
      <td>{{ village.iron }}</td>
      <td>{{ village.food }}</td>
      <td>{{ village.getStorage(village.id).getCapacity() }}</td>
      <td>{{ village.satisfaction }}</td>
    </tr>
  {% endfor %}
  </tbody>
</table>
{% endblock %}