1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00

Fix medal display on the Dota table

This commit is contained in:
Steffo 2018-02-02 08:44:36 +01:00
parent d9b7615843
commit f7e98d2847
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: C27544372FBB445D

View file

@ -38,11 +38,13 @@
<td>{{ record.wins }}</td> <td>{{ record.wins }}</td>
<td sorttable_customkey="{{ record.rank_tier }}"> <td sorttable_customkey="{{ record.rank_tier }}">
<div class="dota-rank-medal"> <div class="dota-rank-medal">
<img class="thirtytwo dota-rank-medal-icon" src="{{ record.get_rank_icon_url() }}">{% if record.get_rank_stars_url() %}<img class="thirtytwo dota-rank-medal-stars" src="{{ record.get_rank_stars_url() }}">{% endif %} {% if record.rank_tier is not None %}
{% if record.rank_tier is not none and record.rank_tier >= 10 %} <img class="thirtytwo dota-rank-medal-icon" src="{{ record.get_rank_icon_url() }}">{% if record.get_rank_stars_url() %}<img class="thirtytwo dota-rank-medal-stars" src="{{ record.get_rank_stars_url() }}">{% endif %}
{{ record.get_rank_name() }} {{ record.get_rank_number() }} {% endif %}
{% else %} {% if record.rank_tier is not None and record.rank_tier < 10 %}
<span class="rl-unranked">Unranked</span> <span class="rl-unranked">Unranked</span>
{% else %}
{{ record.get_rank_name() }} {{ record.get_rank_number() }}
{% endif %} {% endif %}
</div> </div>
</td> </td>