{"action":"created","issue":{"url":"https://api.github.com/repos/alphagov/finder-frontend/issues/182","labels_url":"https://api.github.com/repos/alphagov/finder-frontend/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/alphagov/finder-frontend/issues/182/comments","events_url":"https://api.github.com/repos/alphagov/finder-frontend/issues/182/events","html_url":"https://github.com/alphagov/finder-frontend/pull/182","id":65482192,"number":182,"title":"Applicable nations","user":{"login":"tommyp","id":449004,"avatar_url":"https://avatars.githubusercontent.com/u/449004?v=3","gravatar_id":"","url":"https://api.github.com/users/tommyp","html_url":"https://github.com/tommyp","followers_url":"https://api.github.com/users/tommyp/followers","following_url":"https://api.github.com/users/tommyp/following{/other_user}","gists_url":"https://api.github.com/users/tommyp/gists{/gist_id}","starred_url":"https://api.github.com/users/tommyp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommyp/subscriptions","organizations_url":"https://api.github.com/users/tommyp/orgs","repos_url":"https://api.github.com/users/tommyp/repos","events_url":"https://api.github.com/users/tommyp/events{/privacy}","received_events_url":"https://api.github.com/users/tommyp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-31T15:46:23Z","updated_at":"2015-04-07T15:13:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/alphagov/finder-frontend/pulls/182","html_url":"https://github.com/alphagov/finder-frontend/pull/182","diff_url":"https://github.com/alphagov/finder-frontend/pull/182.diff","patch_url":"https://github.com/alphagov/finder-frontend/pull/182.patch"},"body":"This PR allows policies to display which nations they apply to and link to the alternative policies for the inapplicable nations. To do this I've modified the existing helpers for displaying page metadata to handle strings and renamed them to reflect this.\r\n\r\nThe Finder Presenter generates the sentence which contains the links to the alternative policies if there are any alternative policies, which should only be there if there isn't all 4 nations in the `applies_to` array. There is also a private method `is_external?` which takes a URL and returns if it is external or not. [Ticket](https://trello.com/c/01iC4gHk/82-add-ability-to-set-inapplicable-nations-on-policies).\r\n\r\nScreenshot:\r\n\r\n![screen shot 2015-04-07 at 16 12 57](https://cloud.githubusercontent.com/assets/449004/7026326/01fbb070-dd41-11e4-8638-2e00085621c6.png)\r\n"},"comment":{"url":"https://api.github.com/repos/alphagov/finder-frontend/issues/comments/90603849","html_url":"https://github.com/alphagov/finder-frontend/pull/182#issuecomment-90603849","issue_url":"https://api.github.com/repos/alphagov/finder-frontend/issues/182","id":90603849,"user":{"login":"tommyp","id":449004,"avatar_url":"https://avatars.githubusercontent.com/u/449004?v=3","gravatar_id":"","url":"https://api.github.com/users/tommyp","html_url":"https://github.com/tommyp","followers_url":"https://api.github.com/users/tommyp/followers","following_url":"https://api.github.com/users/tommyp/following{/other_user}","gists_url":"https://api.github.com/users/tommyp/gists{/gist_id}","starred_url":"https://api.github.com/users/tommyp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommyp/subscriptions","organizations_url":"https://api.github.com/users/tommyp/orgs","repos_url":"https://api.github.com/users/tommyp/repos","events_url":"https://api.github.com/users/tommyp/events{/privacy}","received_events_url":"https://api.github.com/users/tommyp/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T15:13:58Z","updated_at":"2015-04-07T15:13:58Z","body":"@tekin Sorted out all those comments and found some CSS to do the correct positioning for the icon."}}