planet-wars/backend/templates/map_partial.html.tera

8 lines
449 B
Text
Raw Permalink Normal View History

2020-03-25 22:14:26 +01:00
<svg preserveAspectRatio="none" viewBox="{{ planets | calc_viewbox}}" xmlns="http://www.w3.org/2000/svg" fill="grey">
2020-03-26 20:25:33 +01:00
{% for planet in planets -%}
2020-03-29 06:50:42 +02:00
<circle cx="{{ planet.x }}" cy="{{ planet.y }}" r="1" fill="{% if planet.owner %}{{planet.owner | get_colour}}{% else %}grey{%endif%}"/>
2020-03-26 20:25:33 +01:00
{# <text x="{{planet.x}}" y="{{planet.y + 2}}" class="small" dominant-baseline="middle" text-anchor="middle">{{planet.name}}</text> #}
{% endfor -%}
2020-03-25 22:14:26 +01:00
</svg>