Show flags only if there are some

This commit is contained in:
Michal Čihař 2012-03-05 14:33:57 +01:00
parent 63ad1af21f
commit 854662666f

View File

@ -78,10 +78,12 @@
<td>{{ unit.get_location_links }}</td>
</tr>
{% endif %}
{% if unit.flags %}
<tr>
<th>{% trans "Flags" %}</th>
<td>{{ unit.flags }}</td>
</tr>
{% endif %}
<tr><td></td><td>
{% if user.is_authenticated %}
<input class="button" type="submit" value="{% trans "Save" %}" name="save" />