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 -%}
|
|
|
|
<circle cx="{{ planet.x }}" cy="{{ planet.y }}" r="0.5" fill="{% if planet.owner %}{{planet.owner | get_colour}}{% else %}grey{%endif%}"/>
|
|
|
|
{# <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>
|