Plots2: Styling missing on 2nd page of comments on profile

Created on 7 Dec 2018  Â·  11Comments  Â·  Source: publiclab/plots2

This looks like the layout is being suppressed in the user_controller!

https://publiclab.org/profile/comments/423961?page=4

image

HTML Ruby bug fto-candidate good first issue help wanted

Most helpful comment

I can look at this.

All 11 comments

I think the first comments page loads on the normal /profile page so it has the styles but rest all are empty..
I think we can use the same styles here as I did in my PR #4143 ..

I agree with @oorjitchowdhary we should use same styles.
@oorjitchowdhary are you willing to take this?

Yes.. I'll do this.. Could I just get a pointer on the code file of this.. Thanks

Oh, i think the styles already exist, this page is just getting rendered
without a layout, so it misses the CSS links and beginning and end of the
page HTML. Maybe check in the profile action in the user_controller to
see if you can find it saying layout: false for anything?

On Fri, Dec 7, 2018 at 2:46 PM Oorjit Chowdhary notifications@github.com
wrote:

I think the first comments page loads on the normal /profile page so it
has the styles but rest all are empty..
I think we can use the same styles here as I did in my PR #4143
https://github.com/publiclab/plots2/pull/4143 ..

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/4174#issuecomment-445344507,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJ1G_BymJsDeeZkb852TvpbcNjjhxks5u2sVpgaJpZM4ZJBlL
.

@SidharthBansal @jywarren

That's the kind of "no format" that causes this, but that one is for the
RSS feeds. Maybe could be good to use the Google Dev console to see exactly
what request is sent when this page is loaded, locally. Then we could try
to figure out why it's not rendering a layout. Thanks!

On Sat, Dec 8, 2018 at 1:28 PM Oorjit Chowdhary notifications@github.com
wrote:

>

https://github.com/publiclab/plots2/blob/4a2596343a5f0199798313b6878f622fbc7e2953/app/controllers/users_controller.rb#L218
I found this.. not sure if its related

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/4174#issuecomment-445483708,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJ2pBV0vqX8pXDJviN4vq3HK7mbBNks5u3BKogaJpZM4ZJBlL
.

Can anyone else take this..
Sorry, I'm unable to find a fix for this..

I can look at this.

@madeofhuman that would'be great. Thanks!

@jywarren, @gauravano I've raised a PR for this. Could you please go through it and tell me if it's how it's supposed to work? Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

first-timers[bot] picture first-timers[bot]  Â·  3Comments

keshavsethi picture keshavsethi  Â·  3Comments

divyabaid16 picture divyabaid16  Â·  3Comments

milaaraujo picture milaaraujo  Â·  3Comments

grvsachdeva picture grvsachdeva  Â·  3Comments