클래식 정보 통계

Install this theme component

Display the old about statistics under the moderators and hide the new statistics on the right sidebar.

At the time I wrote this the statistics in the right sidebar are not wrapped in a single class, so I had to hide the <h3> header with last-child. I’m not sure how fragile that might be.

Thanks to @Richie and the Grey Arrows Drone Club for paying to develop this theme component and it’s continued maintenance for the first year.

16개의 좋아요

It wasn’t obvious you were up to something like this at all :wink: :male_detective: :rocket:

5개의 좋아요

Not to those in the know, and especially, those who know more than I do! It’s rare that I get anything done without asking for help here, even if I’m the one who ends up providing it. :wink:

7개의 좋아요

Firstly, it’s great to have something from “legacy” that’s actually useful but for whatever reason gets removed :+1: so thanks for keeping this around.

Secondly, been there, done that … I often post then up to a day later solve my own problem so know where you are coming from!

9개의 좋아요

전적으로 동의합니다 :blush:

훌륭한 Customization > Theme component 감사합니다 @pfaffman :star_struck:

4개의 좋아요

Cool – I approached this with nth-of-type rather than last-child. For anyone wanting to suppress the new stats without restoring old stats, a little CSS clip over here (currently) works:

Thanks, @ToddZ! I would have used the nth- version if I knew anything about css. I’ll integrate your code tomorrow or next week.

Maybe I’ll submit a PR with the proper class so these css tricks aren’t required.

I don’t know if one hack is any better than the other, as long as they work :smile:

But yeah, a stats class around the whole thing would be handier.

2개의 좋아요

nice work! :clap:

I think perhaps the description should be “replace new about statistics with classic view” or something similar.

2개의 좋아요

Maybe just:

Replace the about statistics with the classic statistics table

ie. Remove the word “new”, as the new about page won’t stay new for long :slight_smile:

2개의 좋아요

Hi @pfaffman,
This component started getting a deprecation notice with these changes. Do you mind reviewing/approving the PR to update it?

2개의 좋아요

https://github.com/literatecomputing/classic-about-statistics/pull/1

1개의 좋아요

I copied over the latest stuff from discourse-theme-skeleton and fixed the linting errors. I did not test to see that it works, largely because I don’t really know what the old Classic Statistics are supposed to look like. :person_shrugging:

I’m still proudly running this on my Discourse if you need to take a look :blush:

2개의 좋아요

Good to know! (Ah, but I’m not an admin right now, so I’ll have to take your word!) You can see if the changes I just made make it any better or worse. :rofl:

Just updated, thankfully no issues or changes to report :sweat_smile:

1개의 좋아요