{"action":"created","comment":{"url":"https://api.github.com/repos/dxw/teacher-vacancy-service/pulls/comments/185742720","pull_request_review_id":117191756,"id":185742720,"diff_hunk":"@@ -53,7 +54,12 @@ def publish_today?\n   end\n \n   def flexible_working\n-    @flexible_working = model.flexible_working ? 'Yes' : 'No'\n+    if model.flexible_working?\n+      mailto = mail_to(model.contact_email, model.school.name)\n+      @flexible_working = safe_join([I18n.t('vacancies.flexible_working_info', mailto: mailto).html_safe])\n+    else\n+      'No'","path":"app/presenters/vacancy_presenter.rb","position":16,"original_position":16,"commit_id":"01b0679e904ae977c7421ca671c99024cdce479c","original_commit_id":"01b0679e904ae977c7421ca671c99024cdce479c","user":{"login":"despo","id":159200,"avatar_url":"https://avatars0.githubusercontent.com/u/159200?v=4","gravatar_id":"","url":"https://api.github.com/users/despo","html_url":"https://github.com/despo","followers_url":"https://api.github.com/users/despo/followers","following_url":"https://api.github.com/users/despo/following{/other_user}","gists_url":"https://api.github.com/users/despo/gists{/gist_id}","starred_url":"https://api.github.com/users/despo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/despo/subscriptions","organizations_url":"https://api.github.com/users/despo/orgs","repos_url":"https://api.github.com/users/despo/repos","events_url":"https://api.github.com/users/despo/events{/privacy}","received_events_url":"https://api.github.com/users/despo/received_events","type":"User","site_admin":false},"body":"So we are reusing this in the review page. A bit confusing but ok 👍 ","created_at":"2018-05-03T09:35:12Z","updated_at":"2018-05-03T09:35:12Z","html_url":"https://github.com/dxw/teacher-vacancy-service/pull/189#discussion_r185742720","pull_request_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/pulls/189","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/dxw/teacher-vacancy-service/pulls/comments/185742720"},"html":{"href":"https://github.com/dxw/teacher-vacancy-service/pull/189#discussion_r185742720"},"pull_request":{"href":"https://api.github.com/repos/dxw/teacher-vacancy-service/pulls/189"}},"in_reply_to_id":185559616},"pull_request":{"url":"https://api.github.com/repos/dxw/teacher-vacancy-service/pulls/189","id":185468738,"html_url":"https://github.com/dxw/teacher-vacancy-service/pull/189","diff_url":"https://github.com/dxw/teacher-vacancy-service/pull/189.diff","patch_url":"https://github.com/dxw/teacher-vacancy-service/pull/189.patch","issue_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/issues/189","number":189,"state":"open","locked":false,"title":"Chore/117 change the way flexible working is displayed to jobseekers","user":{"login":"gazaston","id":822507,"avatar_url":"https://avatars3.githubusercontent.com/u/822507?v=4","gravatar_id":"","url":"https://api.github.com/users/gazaston","html_url":"https://github.com/gazaston","followers_url":"https://api.github.com/users/gazaston/followers","following_url":"https://api.github.com/users/gazaston/following{/other_user}","gists_url":"https://api.github.com/users/gazaston/gists{/gist_id}","starred_url":"https://api.github.com/users/gazaston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gazaston/subscriptions","organizations_url":"https://api.github.com/users/gazaston/orgs","repos_url":"https://api.github.com/users/gazaston/repos","events_url":"https://api.github.com/users/gazaston/events{/privacy}","received_events_url":"https://api.github.com/users/gazaston/received_events","type":"User","site_admin":false},"body":"- if no flexible working, show nothing in the job post\r\n- if flexible working, show an invitation to email for further information in the job post\r\n- add some extra hint text to inform hiring staff that users will be invited to email for info\r\n\r\nform before:\r\n<img width=\"534\" alt=\"form before\" src=\"https://user-images.githubusercontent.com/822507/39531198-8fa7d250-4e22-11e8-889a-c7e1b746e306.png\">\r\nform after:\r\n<img width=\"522\" alt=\"form after\" src=\"https://user-images.githubusercontent.com/822507/39531199-8fbefbba-4e22-11e8-95cc-f24f5de5b94a.png\">\r\njob post before\r\n<img width=\"347\" alt=\"job post before\" src=\"https://user-images.githubusercontent.com/822507/39531200-8fd4ea1a-4e22-11e8-9146-10393c13d724.png\">\r\njob post after\r\n<img width=\"327\" alt=\"job post after\" src=\"https://user-images.githubusercontent.com/822507/39531202-8ffb482c-4e22-11e8-9ae2-6eaebef658f5.png\">\r\njob post no flexible working\r\n<img width=\"330\" alt=\"job post no flexible working\" src=\"https://user-images.githubusercontent.com/822507/39531203-901a893a-4e22-11e8-90e3-b63ddf3bbbd9.png\">\r\n","created_at":"2018-05-02T15:05:56Z","updated_at":"2018-05-03T09:35:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ddcc48734444b40b3917a5a26ef8f66d18611c4c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/pulls/189/commits","review_comments_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/pulls/189/comments","review_comment_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/issues/189/comments","statuses_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/statuses/01b0679e904ae977c7421ca671c99024cdce479c","head":{"label":"dxw:chore/117-change-the-way-flexible-working-is-displayed-to-jobseekers","ref":"chore/117-change-the-way-flexible-working-is-displayed-to-jobseekers","sha":"01b0679e904ae977c7421ca671c99024cdce479c","user":{"login":"dxw","id":27897,"avatar_url":"https://avatars2.githubusercontent.com/u/27897?v=4","gravatar_id":"","url":"https://api.github.com/users/dxw","html_url":"https://github.com/dxw","followers_url":"https://api.github.com/users/dxw/followers","following_url":"https://api.github.com/users/dxw/following{/other_user}","gists_url":"https://api.github.com/users/dxw/gists{/gist_id}","starred_url":"https://api.github.com/users/dxw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dxw/subscriptions","organizations_url":"https://api.github.com/users/dxw/orgs","repos_url":"https://api.github.com/users/dxw/repos","events_url":"https://api.github.com/users/dxw/events{/privacy}","received_events_url":"https://api.github.com/users/dxw/received_events","type":"Organization","site_admin":false},"repo":{"id":122179801,"name":"teacher-vacancy-service","full_name":"dxw/teacher-vacancy-service","owner":{"login":"dxw","id":27897,"avatar_url":"https://avatars2.githubusercontent.com/u/27897?v=4","gravatar_id":"","url":"https://api.github.com/users/dxw","html_url":"https://github.com/dxw","followers_url":"https://api.github.com/users/dxw/followers","following_url":"https://api.github.com/users/dxw/following{/other_user}","gists_url":"https://api.github.com/users/dxw/gists{/gist_id}","starred_url":"https://api.github.com/users/dxw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dxw/subscriptions","organizations_url":"https://api.github.com/users/dxw/orgs","repos_url":"https://api.github.com/users/dxw/repos","events_url":"https://api.github.com/users/dxw/events{/privacy}","received_events_url":"https://api.github.com/users/dxw/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dxw/teacher-vacancy-service","description":"Department for Education's Teaching Jobs Beta","fork":false,"url":"https://api.github.com/repos/dxw/teacher-vacancy-service","forks_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/forks","keys_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/teams","hooks_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/hooks","issue_events_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/issues/events{/number}","events_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/events","assignees_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/assignees{/user}","branches_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/branches{/branch}","tags_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/tags","blobs_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/statuses/{sha}","languages_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/languages","stargazers_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/stargazers","contributors_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/contributors","subscribers_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/subscribers","subscription_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/subscription","commits_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/contents/{+path}","compare_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/merges","archive_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/downloads","issues_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/issues{/number}","pulls_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/pulls{/number}","milestones_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/milestones{/number}","notifications_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/labels{/name}","releases_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/releases{/id}","deployments_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/deployments","created_at":"2018-02-20T09:47:02Z","updated_at":"2018-05-03T09:28:44Z","pushed_at":"2018-05-03T09:32:13Z","git_url":"git://github.com/dxw/teacher-vacancy-service.git","ssh_url":"git@github.com:dxw/teacher-vacancy-service.git","clone_url":"https://github.com/dxw/teacher-vacancy-service.git","svn_url":"https://github.com/dxw/teacher-vacancy-service","homepage":"","size":945,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":2,"open_issues":8,"watchers":2,"default_branch":"develop"}},"base":{"label":"dxw:develop","ref":"develop","sha":"0bfd93fd9e9d35d988cbcce27a175103556f4d41","user":{"login":"dxw","id":27897,"avatar_url":"https://avatars2.githubusercontent.com/u/27897?v=4","gravatar_id":"","url":"https://api.github.com/users/dxw","html_url":"https://github.com/dxw","followers_url":"https://api.github.com/users/dxw/followers","following_url":"https://api.github.com/users/dxw/following{/other_user}","gists_url":"https://api.github.com/users/dxw/gists{/gist_id}","starred_url":"https://api.github.com/users/dxw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dxw/subscriptions","organizations_url":"https://api.github.com/users/dxw/orgs","repos_url":"https://api.github.com/users/dxw/repos","events_url":"https://api.github.com/users/dxw/events{/privacy}","received_events_url":"https://api.github.com/users/dxw/received_events","type":"Organization","site_admin":false},"repo":{"id":122179801,"name":"teacher-vacancy-service","full_name":"dxw/teacher-vacancy-service","owner":{"login":"dxw","id":27897,"avatar_url":"https://avatars2.githubusercontent.com/u/27897?v=4","gravatar_id":"","url":"https://api.github.com/users/dxw","html_url":"https://github.com/dxw","followers_url":"https://api.github.com/users/dxw/followers","following_url":"https://api.github.com/users/dxw/following{/other_user}","gists_url":"https://api.github.com/users/dxw/gists{/gist_id}","starred_url":"https://api.github.com/users/dxw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dxw/subscriptions","organizations_url":"https://api.github.com/users/dxw/orgs","repos_url":"https://api.github.com/users/dxw/repos","events_url":"https://api.github.com/users/dxw/events{/privacy}","received_events_url":"https://api.github.com/users/dxw/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dxw/teacher-vacancy-service","description":"Department for Education's Teaching Jobs Beta","fork":false,"url":"https://api.github.com/repos/dxw/teacher-vacancy-service","forks_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/forks","keys_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/teams","hooks_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/hooks","issue_events_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/issues/events{/number}","events_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/events","assignees_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/assignees{/user}","branches_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/branches{/branch}","tags_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/tags","blobs_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/statuses/{sha}","languages_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/languages","stargazers_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/stargazers","contributors_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/contributors","subscribers_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/subscribers","subscription_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/subscription","commits_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/contents/{+path}","compare_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/merges","archive_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/downloads","issues_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/issues{/number}","pulls_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/pulls{/number}","milestones_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/milestones{/number}","notifications_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/labels{/name}","releases_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/releases{/id}","deployments_url":"https://api.github.com/repos/dxw/teacher-vacancy-service/deployments","created_at":"2018-02-20T09:47:02Z","updated_at":"2018-05-03T09:28:44Z","pushed_at":"2018-05-03T09:32:13Z","git_url":"git://github.com/dxw/teacher-vacancy-service.git","ssh_url":"git@github.com:dxw/teacher-vacancy-service.git","clone_url":"https://github.com/dxw/teacher-vacancy-service.git","svn_url":"https://github.com/dxw/teacher-vacancy-service","homepage":"","size":945,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":2,"open_issues":8,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/dxw/teacher-vacancy-service/pulls/189"},"html":{"href":"https://github.com/dxw/teacher-vacancy-service/pull/189"},"issue":{"href":"https://api.github.com/repos/dxw/teacher-vacancy-service/issues/189"},"comments":{"href":"https://api.github.com/repos/dxw/teacher-vacancy-service/issues/189/comments"},"review_comments":{"href":"https://api.github.com/repos/dxw/teacher-vacancy-service/pulls/189/comments"},"review_comment":{"href":"https://api.github.com/repos/dxw/teacher-vacancy-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dxw/teacher-vacancy-service/pulls/189/commits"},"statuses":{"href":"https://api.github.com/repos/dxw/teacher-vacancy-service/statuses/01b0679e904ae977c7421ca671c99024cdce479c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"despo"}}