From 7f5b346f79d113f2a6615cf237797661f6e561d5 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 8 Feb 2019 23:33:37 +0100 Subject: [PATCH] Display how many games are left to unlock ranked --- static/nryg.less | 4 ++++ static/rank_icon_locked.png | 3 +++ templates/minis/dota.html | 9 ++++++--- 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 static/rank_icon_locked.png diff --git a/static/nryg.less b/static/nryg.less index abbb05ee..3fa07b14 100644 --- a/static/nryg.less +++ b/static/nryg.less @@ -534,6 +534,10 @@ img { img.medal { height: 60px; + + &.locked { + opacity: 0.3; + } } } } diff --git a/static/rank_icon_locked.png b/static/rank_icon_locked.png new file mode 100644 index 00000000..9db86fac --- /dev/null +++ b/static/rank_icon_locked.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ebabd07ca06e02e43486019112ffaa65cb068aa15340797d5c46980c32a6116f +size 37273 diff --git a/templates/minis/dota.html b/templates/minis/dota.html index 94587041..bc9dcb8c 100644 --- a/templates/minis/dota.html +++ b/templates/minis/dota.html @@ -21,11 +21,14 @@ {{ record.wins }}
- {% if record.rank_tier is none %} - + {% if (record.wins + record.losses) < 100 %} + + {{ 100 - record.wins - record.losses }} partite rimaste + {% elif record.rank_tier is none %} + Non classificato {% elif record.rank_tier < 10 %} - + {{ record.rank_tier }} piazzamenti completati {% else %} {% if record.get_rank_stars_url() %}{% endif %}