Skip to content
This repository has been archived by the owner on Sep 5, 2021. It is now read-only.

Maintenance, bugfixes, and initial mobile support for WebViews/mobile devices. #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

kench
Copy link

@kench kench commented Jun 22, 2014

No description provided.

@kench
Copy link
Author

kench commented Jun 22, 2014

Looking for feedback from @gabe283, @bamnet, and @zr2d2.

@pages = Page.order("name").frontpage
render :layout => 'full_map'
# Is this coming from an Android WebView?
if request.headers['X-Requested-With'] or params[:mobile] == "1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this logic mean that any request with an X-Requested-With header will get redirected to the mobile index?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops. That's not what I intended.

Would detecting the substring "Mobile Safari" in the user agent be a better idea?

@bamnet
Copy link
Contributor

bamnet commented Jun 23, 2014

Is this change staged anywhere I can preview what a mobile page looks like?

@kench
Copy link
Author

kench commented Jun 24, 2014

I'll work on bringing a demo instance up. It's borderless.

@kench
Copy link
Author

kench commented Jun 25, 2014

I can't get Dokku to play nice with shuttles at the moment. On my VM, it's the normal map without the borders.

@kench
Copy link
Author

kench commented Jun 27, 2014

@bamnet, can you test this on your own Dokku instance? I'm not sure if it's an issue with Dokku or my specific instance of it.

Use CSS media queries instead of user agent detection.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants