Show name instead of Id of ground units in faction selection screen.

This commit is contained in:
Khopa 2020-11-08 22:02:16 +01:00
parent 2c0ca5803f
commit 61253e4d4d

View File

@ -16,7 +16,13 @@
<strong>Frontlines vehicles:</strong> <strong>Frontlines vehicles:</strong>
<ul> <ul>
{% for vehicle in faction.frontline_units %} {% for vehicle in faction.frontline_units %}
<li>{{vehicle.id}}</li> <li>
{% if vehicle.name is not none %}
{{ vehicle.name }}
{% else %}
{{ vehicle.id }}
{%endif %}
</li>
{% endfor %} {% endfor %}
</ul> </ul>
<br/> <br/>
@ -24,7 +30,13 @@
<strong>Artillery units:</strong> <strong>Artillery units:</strong>
<ul> <ul>
{% for arty in faction.artillery_units %} {% for arty in faction.artillery_units %}
<li>{{arty.id}}</li> <li>
{% if arty.name is not none %}
{{ arty.name }}
{% else %}
{{ arty.id }}
{%endif %}
</li>
{% endfor %} {% endfor %}
</ul> </ul>
<br/> <br/>