1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00
This commit is contained in:
Steffo 2018-02-02 14:23:12 +01:00
parent 4f3e1030bd
commit c2eb7d1320
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
3 changed files with 32 additions and 9 deletions

View file

@ -101,3 +101,16 @@ th {
.timestamp-data {
text-align: right;
}
.challenge-bar {
height: 100px;
}
.challenge-bar.progress {
background-color: orange;
}
.challenge-bar.progress-bar {
background-color: yellow;
color: black;
}

View file

@ -11,13 +11,23 @@
<body>
<div class="container">
<h1>
La Sfida di questa settimana
Royal Challenge
</h1>
<h2>
Raggiungiamo i {{ target }}pp di gruppo su osu!
La Prima Sfida
</h2>
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: {{ (result-starting) / (target-starting) * 100 }}%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
<p>
L'obiettivo di questa settimana sarà di raggiungere {{ target }}pp totali su osu! Ovvero, di guadagnare <b>{{ target-starting }}pp</b> in qualsiasi modalità partendo da adesso.
</p>
<p>
<small>
Più che altro è per provare una roba con il database della Royal Games, però sarebbe bello che tutti provassero a fare qualche pp...
</small>
</p>
<div class="progress challenge-bar">
<div class="progress-bar challenge-bar" role="progressbar" style="width: {{ (result-starting) / (target-starting) * 100 | int }}%">
{{ result-starting }}pp
</div>
</div>
</div>
</body>

View file

@ -40,11 +40,11 @@
<div class="dota-rank-medal">
{% if record.rank_tier is not none %}
<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 %}
{% endif %}
{% if record.rank_tier is not none and record.rank_tier < 10 %}
<span class="rl-unranked">Unranked</span>
{% elif record.rank_tier >= 10 %}
{{ record.get_rank_name() }} {{ record.get_rank_number() }}
{% if record.rank_tier < 10 %}
<span class="rl-unranked">Unranked</span>
{% elif record.rank_tier >= 10 %}
{{ record.get_rank_name() }} {{ record.get_rank_number() }}
{% endif %}
{% endif %}
</div>
</td>