Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile support with failback spike #188

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

Conversation

abhitrivedi
Copy link

MfSE Team Defect
Story Definition: As a user, when I access the site on a mobile device, if I go to the home page, I see just the links on the left navigation. If I go to people search, then I just see the main content window. This should work on iphone and android.

Implementation:
Reference: http://railscasts.com/episodes/199-mobile-devices

  1. Created a new Mime Type (:format) for mobile devices
  2. Added a helper method to identify user_agent
  3. Added mobile layout and *.mobile.erb files for mobile format

@professor
Copy link
Owner

Thank you for this pull request. Out of curiosity, did you explore the media="mobile.css" solution to render a different page for mobile? I'll go watch the railscast next, as he probably talks about why your solution is better.

last_name "Liu"
human_name "David Liu"
email "david.liu@sv.cmu.edu"
webiso_account "david.liu@andrew.cmu.edu"
end
Copy link
Owner

Choose a reason for hiding this comment

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

Note to self: Ignore this commit

Copy link
Author

Choose a reason for hiding this comment

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

You're right. This should not have been checked in. Our Bad.

@abhitrivedi
Copy link
Author

@professor: According to our research it seems that creating a mime type for mobile provides a more universal platform for extending mobile support to other modules by simply creating a new *.mobile.erb version of the view and changing the content. We felt that this approach is less intrusive as well.

I would love to hear your comments about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants