1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +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 { .timestamp-data {
text-align: right; 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> <body>
<div class="container"> <div class="container">
<h1> <h1>
La Sfida di questa settimana Royal Challenge
</h1> </h1>
<h2> <h2>
Raggiungiamo i {{ target }}pp di gruppo su osu! La Prima Sfida
</h2> </h2>
<div class="progress"> <p>
<div class="progress-bar" role="progressbar" style="width: {{ (result-starting) / (target-starting) * 100 }}%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div> 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>
</div> </div>
</body> </body>

View file

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