diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-01-02 20:42:01 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-01-05 12:33:59 +0100 |
commit | b21316248572cb27ed1f504529ad6680a473022e (patch) | |
tree | f8a2f81258cae3b1d2429fb7df5a3287954b683a /views/map.twig | |
parent | f621d95f89ded05a2e916c5ee363bfe75ea37482 (diff) |
gemini
Diffstat (limited to 'views/map.twig')
-rw-r--r-- | views/map.twig | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/views/map.twig b/views/map.twig deleted file mode 100644 index 29f0294..0000000 --- a/views/map.twig +++ /dev/null @@ -1,42 +0,0 @@ -{% extends 'base.twig' %} - -{% block main %} -<div class="map"> - <div class="map__up"> - <a href="/map/{{ x }}/{{ y - 1 }}"> - <i class="icon icon-arrow-up"></i> - </a> - </div> - <div> - <div class="map__left"> - <a href="/map/{{ x - 1 }}/{{ y }}"> - <i class="icon icon-arrow-left"></i> - </a> - </div> - <div class="map__villages" style="grid-template-columns: repeat({{ range*2+1 }}, 1fr); grid-template-rows: repeat({{ range*2+1 }}, 1fr);"> - {% for row in range(-range, range) %} - {% for column in range(-range, range) %} - {% set village = map[x + column][y + row] %} - <div class="map__village"> - {% if village %} - <a href="/village/{{ village.x }}/{{ village.y }}"> - {{ map[x + column][y + row].name }} - </a> - {% endif %} - </div> - {% endfor %} - {% endfor %} - </div> - <div class="map__right"> - <a href="/map/{{ x + 1 }}/{{ y }}"> - <i class="icon icon-arrow-right"></i> - </a> - </div> - </div> - <div class="map__down"> - <a href="/map/{{ x }}/{{ y + 1 }}"> - <i class="icon icon-arrow-down"></i> - </a> - </div> -</div> -{% endblock %} |