codidact / qpixel

Q&A-based community knowledge-sharing software
https://codidact.com
GNU Affero General Public License v3.0
375 stars 70 forks source link

if already subscribed to a tag, change the button label and link #1318

Closed cellio closed 4 months ago

cellio commented 4 months ago

Fixes https://github.com/codidact/qpixel/issues/1317.

If you're already subscribed to the tag, the button now says "subscribed" and links to the subscriptions page on your profile.

I noticed while working on this that the tooltips are not right -- everything on that row has just the number of posts in the tooltip, despite the various elements having their own more-informative tooltips. I remembered this problem from the heading on the category page, so I spent far too long banging my head against divs and spans trying to fix this based on that example. I couldn't crack it and this part was already like this, so I'd like to defer that and meanwhile make the subscription button clearer.

cellio commented 4 months ago

Can anyone help me understand the errors? They look like build errors but I was able to run this locally with no obvious problems.