mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Display how many games are left to unlock ranked
This commit is contained in:
parent
978fa489ab
commit
7f5b346f79
3 changed files with 13 additions and 3 deletions
|
@ -534,6 +534,10 @@ img {
|
|||
|
||||
img.medal {
|
||||
height: 60px;
|
||||
|
||||
&.locked {
|
||||
opacity: 0.3;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
3
static/rank_icon_locked.png
Normal file
3
static/rank_icon_locked.png
Normal file
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ebabd07ca06e02e43486019112ffaa65cb068aa15340797d5c46980c32a6116f
|
||||
size 37273
|
|
@ -21,11 +21,14 @@
|
|||
<span>{{ record.wins }}</span>
|
||||
</div>
|
||||
<div class="rank">
|
||||
{% if record.rank_tier is none %}
|
||||
<img class="medal" src="https://www.opendota.com/assets/images/dota2/rank_icons/rank_icon_0.png" alt="">
|
||||
{% if (record.wins + record.losses) < 100 %}
|
||||
<img class="medal locked" src="{{ url_for("static", filename="rank_icon_locked.png") }}" alt="">
|
||||
<span class="text">{{ 100 - record.wins - record.losses }} partite rimaste</span>
|
||||
{% elif record.rank_tier is none %}
|
||||
<img class="medal unranked" src="https://www.opendota.com/assets/images/dota2/rank_icons/rank_icon_0.png" alt="">
|
||||
<span class="text">Non classificato</span>
|
||||
{% elif record.rank_tier < 10 %}
|
||||
<img class="medal" src="https://www.opendota.com/assets/images/dota2/rank_icons/rank_icon_0.png" alt="">
|
||||
<img class="medal unranked" src="https://www.opendota.com/assets/images/dota2/rank_icons/rank_icon_0.png" alt="">
|
||||
<span class="text">{{ record.rank_tier }} piazzamenti completati</span>
|
||||
{% else %}
|
||||
<img class="medal" src="{{ record.get_rank_icon_url() }}" alt="">{% if record.get_rank_stars_url() %}<img class="stars" src="{{ record.get_rank_stars_url() }}" alt="">{% endif %}
|
||||
|
|
Loading…
Reference in a new issue