justcool393
d7c7026792
leaderboards: fix missing </div> that was never present
...
seriously someone copied and pasted the open div
2022-11-01 02:36:18 -05:00
justcool393
9048f5127d
leaderboards: fix usernames in tables i think
...
i'm not *happy* about this, something seems inelegant about this solution...
2022-11-01 02:17:33 -05:00
Aevann1
5eb2eb5035
remove role="button" from all <a> tags
2022-10-29 01:32:31 +02:00
Aevann1
582a29232b
convert all <a> tags without a href, except 2 in award_modal.html
2022-10-29 01:27:38 +02:00
justcool393
f5b40ebbbc
leaderboard: qol: link to relevant user pages for posts and comments
2022-10-28 12:36:18 -07:00
justcool393
b9b084ca1e
fix more templating errors
2022-10-28 12:36:18 -07:00
justcool393
efd63b8666
leaderboards: show user as last row if not in lb
2022-10-28 12:36:18 -07:00
justcool393
3aac8f1f24
leaderboard: fix some templating bugs i introduced
2022-10-28 12:36:18 -07:00
justcool393
8873171f5c
leaderboards: refactor leaderboards to their own class
...
right now, leaderboards are complex enough that they ought to be upgraded to at least a second class thing.
this commit provides an *okay* implementation of a per-request leaderboard
there are many things to be done, including caching, persistence, etc
i don't like this like 80 parameter __init__ but it's what i've got without overengineering it imo
this is potentially already overdoing it
2022-10-28 12:36:18 -07:00
justcool393
0258bfb356
i've done it... i've really done it 🥲
...
i've made the leaderboard code less crap all around
to those who wrote this old code
i forgive you
2022-10-28 12:36:18 -07:00
justcool393
09c3ac2b65
jinja2 doesn't has getattr but we can subscript apparently
...
weird but ok
2022-10-28 12:36:18 -07:00
justcool393
ad58490dd0
call the leaderboard, not LEADERBOARDS and also do it correctly
2022-10-28 12:36:18 -07:00
justcool393
db587a2501
i forgot a bloody comma ok
2022-10-28 12:36:18 -07:00
justcool393
0b61a83270
this leaderboard code is affecting my mental sanity
...
idk maybe this'll fix it it's 1 am who knows anything about coding anymore
2022-10-28 12:36:18 -07:00
justcool393
67768bf44d
fix prev commit
2022-10-28 12:36:18 -07:00
justcool393
b2cfabf244
i don't think the person who worked on either this template or the leaderboard python function has ever thought about the idea of code reuse
...
(make this template smaller by 3/4ths)
2022-10-28 12:36:18 -07:00
Aevann1
dc93b5b7d2
get rid of the downvote table
2022-10-07 00:21:24 +02:00
Aevann1
ec58f10733
make capitalization consistent in leaderboard template
2022-10-06 23:59:49 +02:00
Aevann1
e071f9c81b
remove leaderboard_thread
2022-10-06 10:23:29 +02:00
Aevann1
ebf83048be
add /blockers (thx JC <3)
2022-09-23 14:58:33 +02:00
Aevann1
dad0018698
make leaderboard not take forever to load by removing the winnings tables
2022-09-16 22:05:28 +02:00
Aevann1
5824385589
more commas in leaderboard
2022-09-10 11:01:53 +02:00
Aevann1
34aaed8045
add commas to numbers
2022-09-10 08:43:38 +02:00
Aevann1
14f8a3f261
fix
2022-09-08 17:53:16 +02:00
Aevann1
5e3ecec61a
link followers in position row in leaderboard
2022-09-06 05:08:28 +02:00
Aevann1
0eb0e4ed5c
experimenting w/ leaderboard
2022-09-06 04:58:04 +02:00
Aevann1
2717b93555
leaderboard cancer
2022-09-06 04:52:03 +02:00
Aevann1
d68ffeadb6
Revert "leaderboard cancer, don't read if u value ur sanity"
...
This reverts commit b1933def96
.
2022-09-06 04:43:28 +02:00
Aevann1
b1933def96
leaderboard cancer, don't read if u value ur sanity
2022-09-06 04:40:11 +02:00
Aevann1
5c854adc20
show urself in blocker users table
2022-09-06 04:13:43 +02:00
Aevann1
1f0e7f6f66
show followers in leaderboard too
2022-09-05 22:43:49 +02:00
Aevann1
e793a1ab3a
show a list of blockers
2022-09-05 22:23:35 +02:00
Aevann1
e9f9756f16
leaderboard shit
2022-09-05 09:26:12 +02:00
Aevann1
eb3dd36b59
add hats to a leaderboard table
2022-09-05 05:57:30 +02:00
Aevann1
34c6842018
make the tooltip be "hat - description"
2022-09-05 05:55:41 +02:00
Aevann1
332a03219b
add hats to most tables
2022-09-05 05:01:06 +02:00
Aevann1
970cf6dccd
update Sparkles and Emo Hair II
2022-09-05 03:58:05 +02:00
Aevann1
554c53633c
fix again
2022-09-05 00:32:17 +02:00
Aevann1
1a5647d44b
fix again
2022-09-05 00:30:32 +02:00
Aevann1
881dc51a44
fix again
2022-09-05 00:29:26 +02:00
Aevann1
b29f456242
fix again
2022-09-05 00:27:23 +02:00
Aevann1
9d57ce9b6b
fix pfps not working in /leaderboard
2022-09-05 00:25:22 +02:00
Aevann1
7a3a1a883c
update nervous sweating hat
2022-09-04 20:59:50 +02:00
gooseman
e0262930ef
pp20 hats
2022-09-03 16:53:45 -07:00
Aevann1
256b384e69
add 2 leaderboard tables for hats
2022-09-03 20:50:20 +02:00
Aevann1
5aaeb93b35
fix colors on most blocked table
2022-09-03 20:17:51 +02:00
Aevann1
0f11312d24
add house awards
2022-08-27 04:57:19 +02:00
Aevann1
6c6f5d7b91
remove <pre> from leaderboard.html
2022-08-05 22:48:08 +02:00
Snakes
42d810a5e7
Leaderboard: fix user join for ea48c46b0f
.
...
After ea48c46b0f
adds the leaderboard table for most blocked user,
it appeared that the user profile links did not appear correctly.
As such, it was necessary to join on the appropriate information.
This has been (mostly) resolved, excluding the removal of profile
picture because profile_url has logic in Python.
If someone knows SQLAlchemy better than I do, please redo this and
add the profile pictures back into the template. However, I got tired
of fighting with the ORM when I already knew the damn query.
2022-05-25 06:09:13 -04:00
Snakes
ea48c46b0f
Leaderboard: add 'Most Blocked' hiscores.
2022-05-25 05:24:31 -04:00