diff options
Diffstat (limited to 'views/villages.twig')
-rw-r--r-- | views/villages.twig | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/views/villages.twig b/views/villages.twig new file mode 100644 index 0000000..21d8cec --- /dev/null +++ b/views/villages.twig @@ -0,0 +1,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>Reputation</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() * (25 / 100) }}</td> + <td>{{ village.reputation }}</td> + </tr> + {% endfor %} + </tbody> +</table> +{% endblock %} |