GitHub PullRequestReviewCommentEvent at 2014-01-09 12:04:17
Repository: frontend
Actor: ironsidevsquincy
Payload: {"comment":{"url":"https://api.github.com/repos/guardian/frontend/pulls/comments/8754187","id":8754187,"diff_hunk":"@@ -143,6 +147,31 @@ define([\n                     });\n                 });\n             }\n+        },\n+\n+        displayAlphaMessage: function(config) {\n+            // only run on 5% of the users\n+            var isAChosenOne = parseInt(mvtCookie.getMvtValue(), 10) < (mvtCookie.MAX_INT * 0.05) || true;\n+            if (config.page.contentType === 'Network Front' && config.switches.networkFrontAlphas === true && isAChosenOne) {\n+                var page = window.location.pathname.replace('-alpha', ''),\n+                    preferenceUrl = '/preference' + page + 'alpha/[OPT]?page=' + page,\n+                    msg,\n+                    opts = {};\n+                // opt in\n+                if (config.page.pageId === \"\") {\n+                    msg = '<p class=\"site-message__message\">' +\n+                              'We are currently testing a news version of our hompeage. If you would like to view it, please <a href=\"' + preferenceUrl.replace('[OPT]', 'optin') + '\">click here</a>' +","path":"common/app/assets/javascripts/bootstraps/facia.js","position":39,"original_position":39,"commit_id":"a761cdea784ec41565ef792884449df99f6ce0ad","original_commit_id":"a761cdea784ec41565ef792884449df99f6ce0ad","user":{"login":"ironsidevsquincy","id":74132,"avatar_url":"https://gravatar.com/avatar/3995af57bb75c35dbc360f7178d113f0?d=https%3A%2F%2Fidenticons.github.com%2F7484728bb6143fab2b06d120d52ef5dc.png&r=x","gravatar_id":"3995af57bb75c35dbc360f7178d113f0","url":"https://api.github.com/users/ironsidevsquincy","html_url":"https://github.com/ironsidevsquincy","followers_url":"https://api.github.com/users/ironsidevsquincy/followers","following_url":"https://api.github.com/users/ironsidevsquincy/following{/other_user}","gists_url":"https://api.github.com/users/ironsidevsquincy/gists{/gist_id}","starred_url":"https://api.github.com/users/ironsidevsquincy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ironsidevsquincy/subscriptions","organizations_url":"https://api.github.com/users/ironsidevsquincy/orgs","repos_url":"https://api.github.com/users/ironsidevsquincy/repos","events_url":"https://api.github.com/users/ironsidevsquincy/events{/privacy}","received_events_url":"https://api.github.com/users/ironsidevsquincy/received_events","type":"User","site_admin":false},"body":"Text still to be confirmed by Theresa","created_at":"2014-01-09T12:04:17Z","updated_at":"2014-01-09T12:04:17Z","html_url":"https://github.com/guardian/frontend/pull/2690#discussion_r8754187","pull_request_url":"https://api.github.com/repos/guardian/frontend/pulls/2690","_links":{"self":{"href":"https://api.github.com/repos/guardian/frontend/pulls/comments/8754187"},"html":{"href":"https://github.com/guardian/frontend/pull/2690#discussion_r8754187"},"pull_request":{"href":"https://api.github.com/repos/guardian/frontend/pulls/2690"}}}}