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

Created on 28 Jun 2019  Â·  6Comments  Â·  Source: publiclab/plots2

Description

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

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

bug

All 6 comments

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

I'll look into it.

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 notifications@github.com 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
.

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

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!

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RuthNjeri picture RuthNjeri  Â·  3Comments

jywarren picture jywarren  Â·  3Comments

shapironick picture shapironick  Â·  3Comments

keshavsethi picture keshavsethi  Â·  3Comments

grvsachdeva picture grvsachdeva  Â·  3Comments