Simplify template

Instead of doing a lot of if checks for type, just use the type directly, as its already in the format we need.
This commit is contained in:
2014-08-06 14:47:35 +01:00
parent 28b4e5bcd2
commit d793e6c55c

View File

@@ -11,7 +11,7 @@
<p><h1 class="muted">{{ type }}</h1></p>
<p>
{% for type, id, entname, standing in standings[type] %}
<img src="{% if type == 'Corporation' %}http://image.eveonline.com/Corporation/{{ id }}_64.png{% endif %}{% if type == 'Alliance' %}http://image.eveonline.com/Alliance/{{ id }}_64.png{% endif %}{% if type == 'Character' %}http://image.eveonline.com/Character/{{ id }}_64.jpg{% endif %}" title="{{ entname }} ({{ standing }})"></li>
<img src="http://image.eveonline.com/{{ type }}/{{ id }}_64.png" title="{{ entname }} ({{ standing }})"></li>
{% endfor %}
</p>
</div>