mirror of
https://github.com/nikdoof/evestandings.git
synced 2025-12-23 14:59:31 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user