Commit Graph

204 Commits (master)

Author SHA1 Message Date
Aevann a86ea63681 make commas jinja filter 2024-03-09 13:39:13 +02:00
Aevann b8bbcef284 make mbux count towards spender badges 2024-03-09 09:39:23 +02:00
Aevann fffc5eb43f make tables in comments and posts look better 2024-02-12 16:18:13 +02:00
Aevann 32e8160fe2 add effortposts leaderboard 2024-02-07 03:42:17 +02:00
Aevann d06ab7640a rename settings2 to meta_navbar 2024-02-05 06:18:50 +02:00
Aevann 0e0ed7ed80 dont lazyload leaderboard banner 2023-11-27 23:17:51 +02:00
Aevann 64df6a4036 use usernames in leaderboard again since it isnt cached anymore 2023-11-18 19:11:16 +02:00
Aevann 7251bfed34 remove scroll-up-button for being unnecessary now 2023-11-18 19:06:42 +02:00
Aevann 8457946267 split leaderboard tables for performance reasons 2023-11-18 19:06:11 +02:00
Aevann a1dea631f7 Revert "remove settings2.html for being an unnecessary artifact from times where our pages were much fewer"
This reverts commit aec8d2bfb1.
2023-09-08 20:07:40 +03:00
Aevann aec8d2bfb1 remove settings2.html for being an unnecessary artifact from times where our pages were much fewer 2023-09-07 12:09:48 +03:00
Aevann 78ba2f4a62 dont cache notification count in /leaderboard to prevent user confusion 2023-09-05 22:10:49 +03:00
Aevann b95ffac73b restore winnings leaderboards (testing on staging) 2023-08-04 00:57:50 +03:00
Aevann 80f553616b add cute image to leaderboard 2023-07-29 03:30:21 +03:00
Aevann 8e8a010a06 remove unnecessary <pre> 2022-12-30 10:05:11 +02:00
Aevann1 016d009d3d cosmetic fix in leaderboard 2022-11-07 14:08:59 +02:00
justcool393 5c32713469 leaderboards: workaround jinja can't do this by setting a value for if v appears in ranking 2022-11-01 02:57:10 -05:00
justcool393 40a34ea26a leaderboards: don't show users if they're in the ranking more than once 2022-11-01 02:49:20 -05:00
justcool393 444b3d36f1 leaderboard: fix bug in table 2022-11-01 02:43:08 -05:00
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