Show "x" to unfollow vs. "unfollow" button depending on page
We recently made it possible to "unfollow" a topic from a topic card, by pressing the x in the upper right corner:

This replaces the former button labelled unfollow (here, in an older screenshot, it says unsubscribe):

But topic cards appear in different places. We should have it offer an unfollow button on the https://publiclab.org/tags page, but an x on the dashboard. We can tell what page we're on by comparing the params[:action] and params[:controller] variables. For the dashboard it should be controller: home and action: dashboard, whereas for the /tags page, it should be controller: tag and action: index.
The x button is here:
https://github.com/publiclab/plots2/blob/cc10a02951110f0fed4ae9c15da13c7817ae5e40/app/views/tag/_topicCard.html.erb#L7-L9
We'd love help with this!
Howdy, i can help with this. Assign it my way.
That would be great, thank you!
On Tue, Oct 8, 2019, 8:24 PM Daniel Wheeler [email protected] wrote:
Howdy, i can help with this?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/6424?email_source=notifications&email_token=AAAF6J5RUVZ7M3KVMRRP6T3QNUQB3A5CNFSM4I6VUFFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAWBCSY#issuecomment-539758923, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAF6J2ZDZBSOSVZ2JPGZETQNUQB3ANCNFSM4I6VUFFA .
@jywarren I have a PR ready locally... can you grant me permission to push it up? Ty.
@jywarren please close this issue as the PR has been merged.
Thanks, just did that! Thanks all!