iOS: As a student, I can view any unit page within my mobile browser

Description

Needs to be implemented in CourseBlockViewController and CourseContentPageViewController. The page view controller should use the URL from its current block.

– This will be added as a UIBarButtonItem (with FontAwesome.ShareSquareO) in the navigationItem for each controller. Tapping the button will use the courseQuerier to fetch the webURL for the current block and then open it via UIApplication openURL:

  • Unit tests should verify:
    – Tap view on web triggers call on UIApplication with expected URL, verify this by instantiating one with the test course content, mocking [[UIApplication sharedApplication] openURL:]
    – Disable button if course content is not loaded. Two cases:
    — Content won't load: Create a content view with a block id that's not in the test CourseOutline structure.
    — Content loads eventually: Verify disabled until content loads.

Steps to Reproduce

None

Reason for Variance

None

Release Notes

None

Assignee

Ehmad Zubair

Reporter

hanningR

Labels

Customer

None

URL

None

Groups with Read-Only Access

None

Actual Points

None

Reach

None

Impact

None

Open edX Discourse Thread

None

Platform Map Area (Levels 1 & 2)

None

Platform Map Area (Levels 3 & 4)

None

Contributor Name

None

Blended Project Status Page

None

Story Points

2

Fix versions

Due date

2015/06/08

Priority

Unset
Configure