{"action":"created","comment":{"url":"https://api.github.com/repos/vatesfr/xo-web/pulls/comments/66925219","id":66925219,"diff_hunk":"@@ -0,0 +1,47 @@\n+import Icon from 'icon'\n+import Link from 'react-router/lib/Link'\n+import React from 'react'\n+import { Card, CardHeader, CardBlock } from 'card'\n+import { getXoaPlan, propTypes } from 'utils'\n+\n+export const Upgrade = propTypes({\n+  available: propTypes.number,\n+  place: propTypes.string\n+})(({\n+  available,\n+  place\n+}) => (\n+  <Card>\n+    <CardHeader>Upgrade needed</CardHeader>\n+    <CardBlock className='text-xs-center'>\n+      <p>This feature is available starting from {getXoaPlan(available)} Edition</p>\n+      <a href={`https://xen-orchestra.com/#!/pricing?pk_campaign=xoa_${getXoaPlan()}_upgrade&pk_kwd=${place}`} className='btn btn-primary btn-lg'>","path":"src/common/xoa-upgrade.js","position":18,"original_position":18,"commit_id":"4504c2f3cf534d15dcd21ae2834db9ee5675b3d2","original_commit_id":"4504c2f3cf534d15dcd21ae2834db9ee5675b3d2","user":{"login":"olivierlambert","id":1241401,"avatar_url":"https://avatars.githubusercontent.com/u/1241401?v=3","gravatar_id":"","url":"https://api.github.com/users/olivierlambert","html_url":"https://github.com/olivierlambert","followers_url":"https://api.github.com/users/olivierlambert/followers","following_url":"https://api.github.com/users/olivierlambert/following{/other_user}","gists_url":"https://api.github.com/users/olivierlambert/gists{/gist_id}","starred_url":"https://api.github.com/users/olivierlambert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivierlambert/subscriptions","organizations_url":"https://api.github.com/users/olivierlambert/orgs","repos_url":"https://api.github.com/users/olivierlambert/repos","events_url":"https://api.github.com/users/olivierlambert/events{/privacy}","received_events_url":"https://api.github.com/users/olivierlambert/received_events","type":"User","site_admin":false},"body":"Is it mandatory? I mean, those a 2 different things already (one text and one button)","created_at":"2016-06-14T08:07:48Z","updated_at":"2016-06-14T08:07:48Z","html_url":"https://github.com/vatesfr/xo-web/pull/1062#discussion_r66925219","pull_request_url":"https://api.github.com/repos/vatesfr/xo-web/pulls/1062","_links":{"self":{"href":"https://api.github.com/repos/vatesfr/xo-web/pulls/comments/66925219"},"html":{"href":"https://github.com/vatesfr/xo-web/pull/1062#discussion_r66925219"},"pull_request":{"href":"https://api.github.com/repos/vatesfr/xo-web/pulls/1062"}}},"pull_request":{"url":"https://api.github.com/repos/vatesfr/xo-web/pulls/1062","id":73609073,"html_url":"https://github.com/vatesfr/xo-web/pull/1062","diff_url":"https://github.com/vatesfr/xo-web/pull/1062.diff","patch_url":"https://github.com/vatesfr/xo-web/pull/1062.patch","issue_url":"https://api.github.com/repos/vatesfr/xo-web/issues/1062","number":1062,"state":"open","locked":false,"title":"feat(free edition): feature edition check for Free Edition","user":{"login":"olivierlambert","id":1241401,"avatar_url":"https://avatars.githubusercontent.com/u/1241401?v=3","gravatar_id":"","url":"https://api.github.com/users/olivierlambert","html_url":"https://github.com/olivierlambert","followers_url":"https://api.github.com/users/olivierlambert/followers","following_url":"https://api.github.com/users/olivierlambert/following{/other_user}","gists_url":"https://api.github.com/users/olivierlambert/gists{/gist_id}","starred_url":"https://api.github.com/users/olivierlambert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivierlambert/subscriptions","organizations_url":"https://api.github.com/users/olivierlambert/orgs","repos_url":"https://api.github.com/users/olivierlambert/repos","events_url":"https://api.github.com/users/olivierlambert/events{/privacy}","received_events_url":"https://api.github.com/users/olivierlambert/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-13T16:59:18Z","updated_at":"2016-06-14T08:07:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7c5994bfe56608a9f9208f51ed44153924b2f3ad","assignee":{"login":"julien-f","id":298721,"avatar_url":"https://avatars.githubusercontent.com/u/298721?v=3","gravatar_id":"","url":"https://api.github.com/users/julien-f","html_url":"https://github.com/julien-f","followers_url":"https://api.github.com/users/julien-f/followers","following_url":"https://api.github.com/users/julien-f/following{/other_user}","gists_url":"https://api.github.com/users/julien-f/gists{/gist_id}","starred_url":"https://api.github.com/users/julien-f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julien-f/subscriptions","organizations_url":"https://api.github.com/users/julien-f/orgs","repos_url":"https://api.github.com/users/julien-f/repos","events_url":"https://api.github.com/users/julien-f/events{/privacy}","received_events_url":"https://api.github.com/users/julien-f/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/vatesfr/xo-web/pulls/1062/commits","review_comments_url":"https://api.github.com/repos/vatesfr/xo-web/pulls/1062/comments","review_comment_url":"https://api.github.com/repos/vatesfr/xo-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vatesfr/xo-web/issues/1062/comments","statuses_url":"https://api.github.com/repos/vatesfr/xo-web/statuses/4504c2f3cf534d15dcd21ae2834db9ee5675b3d2","head":{"label":"vatesfr:xoa-plans","ref":"xoa-plans","sha":"4504c2f3cf534d15dcd21ae2834db9ee5675b3d2","user":{"login":"vatesfr","id":2064170,"avatar_url":"https://avatars.githubusercontent.com/u/2064170?v=3","gravatar_id":"","url":"https://api.github.com/users/vatesfr","html_url":"https://github.com/vatesfr","followers_url":"https://api.github.com/users/vatesfr/followers","following_url":"https://api.github.com/users/vatesfr/following{/other_user}","gists_url":"https://api.github.com/users/vatesfr/gists{/gist_id}","starred_url":"https://api.github.com/users/vatesfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vatesfr/subscriptions","organizations_url":"https://api.github.com/users/vatesfr/orgs","repos_url":"https://api.github.com/users/vatesfr/repos","events_url":"https://api.github.com/users/vatesfr/events{/privacy}","received_events_url":"https://api.github.com/users/vatesfr/received_events","type":"Organization","site_admin":false},"repo":{"id":8077957,"name":"xo-web","full_name":"vatesfr/xo-web","owner":{"login":"vatesfr","id":2064170,"avatar_url":"https://avatars.githubusercontent.com/u/2064170?v=3","gravatar_id":"","url":"https://api.github.com/users/vatesfr","html_url":"https://github.com/vatesfr","followers_url":"https://api.github.com/users/vatesfr/followers","following_url":"https://api.github.com/users/vatesfr/following{/other_user}","gists_url":"https://api.github.com/users/vatesfr/gists{/gist_id}","starred_url":"https://api.github.com/users/vatesfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vatesfr/subscriptions","organizations_url":"https://api.github.com/users/vatesfr/orgs","repos_url":"https://api.github.com/users/vatesfr/repos","events_url":"https://api.github.com/users/vatesfr/events{/privacy}","received_events_url":"https://api.github.com/users/vatesfr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vatesfr/xo-web","description":"Interface part of Xen Orchestra.","fork":false,"url":"https://api.github.com/repos/vatesfr/xo-web","forks_url":"https://api.github.com/repos/vatesfr/xo-web/forks","keys_url":"https://api.github.com/repos/vatesfr/xo-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vatesfr/xo-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vatesfr/xo-web/teams","hooks_url":"https://api.github.com/repos/vatesfr/xo-web/hooks","issue_events_url":"https://api.github.com/repos/vatesfr/xo-web/issues/events{/number}","events_url":"https://api.github.com/repos/vatesfr/xo-web/events","assignees_url":"https://api.github.com/repos/vatesfr/xo-web/assignees{/user}","branches_url":"https://api.github.com/repos/vatesfr/xo-web/branches{/branch}","tags_url":"https://api.github.com/repos/vatesfr/xo-web/tags","blobs_url":"https://api.github.com/repos/vatesfr/xo-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vatesfr/xo-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vatesfr/xo-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/vatesfr/xo-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vatesfr/xo-web/statuses/{sha}","languages_url":"https://api.github.com/repos/vatesfr/xo-web/languages","stargazers_url":"https://api.github.com/repos/vatesfr/xo-web/stargazers","contributors_url":"https://api.github.com/repos/vatesfr/xo-web/contributors","subscribers_url":"https://api.github.com/repos/vatesfr/xo-web/subscribers","subscription_url":"https://api.github.com/repos/vatesfr/xo-web/subscription","commits_url":"https://api.github.com/repos/vatesfr/xo-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/vatesfr/xo-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/vatesfr/xo-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/vatesfr/xo-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/vatesfr/xo-web/contents/{+path}","compare_url":"https://api.github.com/repos/vatesfr/xo-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vatesfr/xo-web/merges","archive_url":"https://api.github.com/repos/vatesfr/xo-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vatesfr/xo-web/downloads","issues_url":"https://api.github.com/repos/vatesfr/xo-web/issues{/number}","pulls_url":"https://api.github.com/repos/vatesfr/xo-web/pulls{/number}","milestones_url":"https://api.github.com/repos/vatesfr/xo-web/milestones{/number}","notifications_url":"https://api.github.com/repos/vatesfr/xo-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vatesfr/xo-web/labels{/name}","releases_url":"https://api.github.com/repos/vatesfr/xo-web/releases{/id}","deployments_url":"https://api.github.com/repos/vatesfr/xo-web/deployments","created_at":"2013-02-07T17:43:01Z","updated_at":"2016-06-10T01:11:04Z","pushed_at":"2016-06-13T16:59:18Z","git_url":"git://github.com/vatesfr/xo-web.git","ssh_url":"git@github.com:vatesfr/xo-web.git","clone_url":"https://github.com/vatesfr/xo-web.git","svn_url":"https://github.com/vatesfr/xo-web","homepage":"","size":8615,"stargazers_count":69,"watchers_count":69,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":106,"forks":24,"open_issues":106,"watchers":69,"default_branch":"v5.x"}},"base":{"label":"vatesfr:v5.x","ref":"v5.x","sha":"88a6215939acbdf1aa64f9a155690a51354f6e05","user":{"login":"vatesfr","id":2064170,"avatar_url":"https://avatars.githubusercontent.com/u/2064170?v=3","gravatar_id":"","url":"https://api.github.com/users/vatesfr","html_url":"https://github.com/vatesfr","followers_url":"https://api.github.com/users/vatesfr/followers","following_url":"https://api.github.com/users/vatesfr/following{/other_user}","gists_url":"https://api.github.com/users/vatesfr/gists{/gist_id}","starred_url":"https://api.github.com/users/vatesfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vatesfr/subscriptions","organizations_url":"https://api.github.com/users/vatesfr/orgs","repos_url":"https://api.github.com/users/vatesfr/repos","events_url":"https://api.github.com/users/vatesfr/events{/privacy}","received_events_url":"https://api.github.com/users/vatesfr/received_events","type":"Organization","site_admin":false},"repo":{"id":8077957,"name":"xo-web","full_name":"vatesfr/xo-web","owner":{"login":"vatesfr","id":2064170,"avatar_url":"https://avatars.githubusercontent.com/u/2064170?v=3","gravatar_id":"","url":"https://api.github.com/users/vatesfr","html_url":"https://github.com/vatesfr","followers_url":"https://api.github.com/users/vatesfr/followers","following_url":"https://api.github.com/users/vatesfr/following{/other_user}","gists_url":"https://api.github.com/users/vatesfr/gists{/gist_id}","starred_url":"https://api.github.com/users/vatesfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vatesfr/subscriptions","organizations_url":"https://api.github.com/users/vatesfr/orgs","repos_url":"https://api.github.com/users/vatesfr/repos","events_url":"https://api.github.com/users/vatesfr/events{/privacy}","received_events_url":"https://api.github.com/users/vatesfr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vatesfr/xo-web","description":"Interface part of Xen Orchestra.","fork":false,"url":"https://api.github.com/repos/vatesfr/xo-web","forks_url":"https://api.github.com/repos/vatesfr/xo-web/forks","keys_url":"https://api.github.com/repos/vatesfr/xo-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vatesfr/xo-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vatesfr/xo-web/teams","hooks_url":"https://api.github.com/repos/vatesfr/xo-web/hooks","issue_events_url":"https://api.github.com/repos/vatesfr/xo-web/issues/events{/number}","events_url":"https://api.github.com/repos/vatesfr/xo-web/events","assignees_url":"https://api.github.com/repos/vatesfr/xo-web/assignees{/user}","branches_url":"https://api.github.com/repos/vatesfr/xo-web/branches{/branch}","tags_url":"https://api.github.com/repos/vatesfr/xo-web/tags","blobs_url":"https://api.github.com/repos/vatesfr/xo-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vatesfr/xo-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vatesfr/xo-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/vatesfr/xo-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vatesfr/xo-web/statuses/{sha}","languages_url":"https://api.github.com/repos/vatesfr/xo-web/languages","stargazers_url":"https://api.github.com/repos/vatesfr/xo-web/stargazers","contributors_url":"https://api.github.com/repos/vatesfr/xo-web/contributors","subscribers_url":"https://api.github.com/repos/vatesfr/xo-web/subscribers","subscription_url":"https://api.github.com/repos/vatesfr/xo-web/subscription","commits_url":"https://api.github.com/repos/vatesfr/xo-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/vatesfr/xo-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/vatesfr/xo-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/vatesfr/xo-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/vatesfr/xo-web/contents/{+path}","compare_url":"https://api.github.com/repos/vatesfr/xo-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vatesfr/xo-web/merges","archive_url":"https://api.github.com/repos/vatesfr/xo-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vatesfr/xo-web/downloads","issues_url":"https://api.github.com/repos/vatesfr/xo-web/issues{/number}","pulls_url":"https://api.github.com/repos/vatesfr/xo-web/pulls{/number}","milestones_url":"https://api.github.com/repos/vatesfr/xo-web/milestones{/number}","notifications_url":"https://api.github.com/repos/vatesfr/xo-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vatesfr/xo-web/labels{/name}","releases_url":"https://api.github.com/repos/vatesfr/xo-web/releases{/id}","deployments_url":"https://api.github.com/repos/vatesfr/xo-web/deployments","created_at":"2013-02-07T17:43:01Z","updated_at":"2016-06-10T01:11:04Z","pushed_at":"2016-06-13T16:59:18Z","git_url":"git://github.com/vatesfr/xo-web.git","ssh_url":"git@github.com:vatesfr/xo-web.git","clone_url":"https://github.com/vatesfr/xo-web.git","svn_url":"https://github.com/vatesfr/xo-web","homepage":"","size":8615,"stargazers_count":69,"watchers_count":69,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":106,"forks":24,"open_issues":106,"watchers":69,"default_branch":"v5.x"}},"_links":{"self":{"href":"https://api.github.com/repos/vatesfr/xo-web/pulls/1062"},"html":{"href":"https://github.com/vatesfr/xo-web/pull/1062"},"issue":{"href":"https://api.github.com/repos/vatesfr/xo-web/issues/1062"},"comments":{"href":"https://api.github.com/repos/vatesfr/xo-web/issues/1062/comments"},"review_comments":{"href":"https://api.github.com/repos/vatesfr/xo-web/pulls/1062/comments"},"review_comment":{"href":"https://api.github.com/repos/vatesfr/xo-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vatesfr/xo-web/pulls/1062/commits"},"statuses":{"href":"https://api.github.com/repos/vatesfr/xo-web/statuses/4504c2f3cf534d15dcd21ae2834db9ee5675b3d2"}}}}
{"actor":{"display_login":"olivierlambert"}}