plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

The `answered` and `asked` tab doesn't work

Open CleverFool77 opened this issue 7 years ago • 6 comments

Description

The answered and asked tab seems to have broken and is not working.

Screenshot from 2019-06-28 17-39-19

CleverFool77 avatar Jun 28 '19 12:06 CleverFool77

Hi @michelelong I saw you worked on the one of the tab fix earlier. If you are interested, you can look into this. Thanks !!

CleverFool77 avatar Jun 28 '19 12:06 CleverFool77

I'll look into it.

michelelong avatar Jun 28 '19 21:06 michelelong

Hi! Just noting, I think this is also potentially related to the test issue in https://github.com/publiclab/plots2/pull/5902, if you're talking about the tag page! Thanks!

On Fri, Jun 28, 2019 at 5:17 PM Michele [email protected] wrote:

I'll look into it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/5958?email_source=notifications&email_token=AAAF6JYJBHFXGA5KELGRKB3P4Z5TTA5CNFSM4H4E2EG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY3F3TQ#issuecomment-506879438, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAF6J4IAIDGERRUSVBTZ7DP4Z5TTANCNFSM4H4E2EGQ .

jywarren avatar Jun 28 '19 21:06 jywarren

Is there a way to get the count for these two tabs like the others have?

michelelong avatar Jun 28 '19 22:06 michelelong

Hi @michelelong, yes, you can do that, here's logic for the profile page https://github.com/publiclab/plots2/blob/master/app/controllers/users_controller.rb#L143-L228 . You'll see in profile.html.erb that we show count for some tabs from the instance variable we use like for Authored, Coauthored, Drafts, etc. Similarly, you can either send the count or if we already have instance variable declared then you can use it to show the count.

Let me know if you want any help. Thank you!

grvsachdeva avatar Jul 04 '19 04:07 grvsachdeva

I believe this is no longer required as per the new profile page design! Thanks!!

jywarren avatar Oct 05 '19 16:10 jywarren