add commas to numbers

remotes/1693045480750635534/spooky-22
Aevann1 2022-09-10 08:43:38 +02:00
parent b6cd2a839e
commit 34aaed8045
7 changed files with 18 additions and 18 deletions

View File

@ -22,7 +22,7 @@
<tr>
<td>{{loop.index}}</td>
<td>{% include "user_in_table.html" %}</td>
<td style="text-align:right;">{{user.truecoins}}</td>
<td style="text-align:right;">{{"{:,}".format(user.truecoins)}}</td>
<td style="text-align:right;"><a href="/log?admin={{user.username}}">{{user.modaction_num}}</a></td>
</tr>
{% endfor %}

View File

@ -19,8 +19,8 @@
<img id="hats-banner" class="mt-5" alt="hats banner" src="/i/hats.webp?v=1" width="50%">
<h5 class="mt-4">Number of hats you bought: {{v.num_of_owned_hats}}</h5>
<h5 class="mt-4">Number of hats you designed: {{v.num_of_designed_hats}}</h5>
<h5 class="mt-4">Coins you spent on hats: {{v.coins_spent_on_hats}}</h5>
<h5 class="mt-4">Total hat sales: {{sales}}</h5>
<h5 class="mt-4">Coins you spent on hats: {{"{:,}".format(v.coins_spent_on_hats)}}</h5>
<h5 class="mt-4">Total hat sales: {{"{:,}".format(sales)}}</h5>
<h5 class="mt-4">Number of hats: {{num_of_hats}}</h5>
</header>
{% endblock %}

View File

@ -37,7 +37,7 @@
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.coins}}</td>
<td>{{"{:,}".format(user.coins)}}</td>
</tr>
{% endfor %}
{% if pos1 %}
@ -48,7 +48,7 @@
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{v.coins}}</td>
<td>{{"{:,}".format(v.coins)}}</td>
</tr>
{% endif %}
</table>
@ -68,7 +68,7 @@
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.coins_spent}}</td>
<td>{{"{:,}".format(user.coins_spent)}}</td>
</tr>
{% endfor %}
{% if pos7 %}
@ -79,7 +79,7 @@
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{v.coins_spent}}</td>
<td>{{"{:,}".format(v.coins_spent)}}</td>
</tr>
{% endif %}
</table>
@ -99,7 +99,7 @@
<tr {% if v.id == user.id %}class="self"{% endif %}>
<td>{{loop.index}}</td>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.truecoins}}</td>
<td>{{"{:,}".format(user.truecoins)}}</td>
</tr>
{% endfor %}
{% if pos10 %}
@ -110,7 +110,7 @@
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{v.truecoins}}</td>
<td>{{"{:,}".format(v.truecoins)}}</td>
</tr>
{% endif %}
</tbody>

View File

@ -13,7 +13,7 @@
<tr>
<td>{{loop.index}}</td>
<td>{% include "user_in_table.html" %}</td>
<td>{{user.truecoins}}</td>
<td>{{"{:,}".format(user.truecoins)}}</td>
</tr>
{% endfor %}
</table>

View File

@ -31,7 +31,7 @@
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{vote.user.truecoins}}</td>
<td>{{"{:,}".format(vote.user.truecoins)}}</td>
<td data-time="{{vote.created_utc}}"></td>
</tr>
{% endfor %}

View File

@ -24,12 +24,12 @@
<header class="container pb-1 text-center">
<img id="shop-banner" alt="shop banner" src="/i/shop.webp">
<h3 class="mt-4">{{SHOP_FLAVOR}} Earn coins.</h5>
<h5 class="mt-4">Total sales: {{sales}} coins</h5>
<h5 class="mt-4">Coins spent by you: {{v.coins_spent}} coins</h5>
<h5 class="mt-4">Total sales: {{"{:,}".format(sales)}} coins</h5>
<h5 class="mt-4">Coins spent by you: {{"{:,}".format(v.coins_spent)}} coins</h5>
<h5 class="mt-4">Lootboxes bought by you: {{v.lootboxes_bought}} lootbox{{'es' if v.lootboxes_bought != 1}}</h5>
<h5 class="mt-4">Your current coins: {{v.coins}}</h5>
<h5 class="mt-4">Your current coins: {{"{:,}".format(v.coins)}}</h5>
{% if FEATURES['PROCOINS'] %}
<h5 class="mt-4">Your current marseybux: {{v.procoins}}</h3>
<h5 class="mt-4">Your current marseybux: {{"{:,}".format(v.procoins)}}</h3>
{% endif %}
<h5 class="mt-5"><a href="/hats">Buy hats here!</a></h5>

View File

@ -16,7 +16,7 @@
<p><a href="{{thing.permalink}}">{{thing.permalink}}</a></p>
<p><b>Author:</b> <a href="{{thing.author.url}}">@{{thing.author.username}}</a></p>
<p><b>Author Created At:</b> <span data-time="{{thing.author.created_utc}}"></span></p>
<p><b>Author Truescore:</b> {{thing.author.truecoins}}</p>
<p><b>Author Truescore:</b> {{"{:,}".format(thing.author.truecoins)}}</p>
<p><b>Upvotes: </b>{{ups | length}}</p>
<p><b>Downvotes: </b>{{downs | length}}</p>
@ -43,7 +43,7 @@
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{vote.user.truecoins}}</td>
<td>{{"{:,}".format(vote.user.truecoins)}}</td>
<td data-time="{{vote.created_utc}}"></td>
</tr>
{% endfor %}
@ -68,7 +68,7 @@
{% include "user_in_table.html" %}
{% endwith %}
</td>
<td>{{vote.user.truecoins}}</td>
<td>{{"{:,}".format(vote.user.truecoins)}}</td>
<td data-time="{{vote.created_utc}}"></td>
</tr>
{% endfor %}