forked from MarseyWorld/MarseyWorld
this leaderboard code is affecting my mental sanity
idk maybe this'll fix it it's 1 am who knows anything about coding anymoremaster
parent
67768bf44d
commit
0b61a83270
|
@ -1,16 +1,17 @@
|
|||
{% extends "settings2.html" %}
|
||||
{% block pagetitle %}Leaderboard{% endblock %}
|
||||
{% block content %}
|
||||
{%-set leaderboards = [
|
||||
('coins', 'Coins', True), ('spent', 'Spent in shop', True), ('truescore', 'Truescore', True), ('followers', 'Followers', True),
|
||||
('posts', 'Posts', True), ('comments', 'Comments', True), ('awards', 'Awards', True), ('badges', 'Badges', True),
|
||||
('marseys', 'Marseys', SITE_NAME == 'rDrama') ('blocked', 'Blocked', True), ('owned-hats', 'Owned hats', True), ('designed-hats', 'Designed hats', True, False)
|
||||
{%-
|
||||
set LEADERBOARDS = [
|
||||
('coins', 'Coins', True, True), ('spent', 'Spent in shop', True, True), ('truescore', 'Truescore', True, True), ('followers', 'Followers', True, True),
|
||||
('posts', 'Posts', True, True), ('comments', 'Comments', True, True), ('awards', 'Awards', True, True), ('badges', 'Badges', True, True),
|
||||
('marseys', 'Marseys', SITE_NAME == 'rDrama', True) ('blocked', 'Blocked', True, True), ('owned-hats', 'Owned hats', True, True), ('designed-hats', 'Designed hats', True, False)
|
||||
] -%}
|
||||
<pre class="d-none d-md-inline-block"></pre>
|
||||
<div id="leaderboard-contents" style="text-align: center; margin-bottom: 1.5rem; font-size: 1.2rem;">
|
||||
{% for lb in leaderboards %}
|
||||
{% for lb in LEADERBOARDS %}
|
||||
{% if lbs[2] %}
|
||||
<a href="#leaderboard-{{lb[0]}}">{{lb[1]}}</a>{% if not lb[3] %} •{% endif %}
|
||||
<a href="#leaderboard-{{lb[0]}}">{{lb[1]}}</a>{% if lb[3] %} •{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue