{"action":"created","comment":{"url":"https://api.github.com/repos/ouvrages/tarteaucitron/pulls/comments/28518105","id":28518105,"diff_hunk":"@@ -47,31 +47,38 @@ def facebook(options = {})\n \n       content_tag(:div, '', class: \"fb-like\", data: options).html_safe\n \n-    end    \n-    \n+    end\n+\n     def googleplus(options = {})\n-    \n+\n       default_options = {size: \"small\", annotation: \"inline\", width: \"300\"}\n       options = default_options.merge(options)\n \n       content_tag(:div, '', class: \"g-plusone\", data: options).html_safe\n-    \n+\n     end\n-    \n+\n     def twitter(options = {})\n-    \n+\n       result = \"\"\n-    \n+\n       default_options = {via: \"twitter_username\", count: \"vertical\", dnt: \"true\"}\n       options = default_options.merge(options)\n-      \n+\n       result += content_tag(:span, '', class: \"tacTwitter\").html_safe\n-      \n+\n       result += content_tag(:a,'', href: \"https://twitter.com/share\", class: \"twitter-share-button\", data: options).html_safe\n-          \n-      result.html_safe \n-          \n+\n+      result.html_safe\n+\n     end\n-    \n+\n+    def cookie_manager_link(text = \"Gestion des cookies\")\n+\n+      content_tag(:a, text, href: \"javascript:tarteaucitron.userInterface.openPanel();\").html_safe","path":"lib/tarteaucitron/view_helpers.rb","position":59,"original_position":59,"commit_id":"0a0ce702559e5190b6c3a63c19e4112c8a33b3aa","original_commit_id":"0a0ce702559e5190b6c3a63c19e4112c8a33b3aa","user":{"login":"sigmike","id":28259,"avatar_url":"https://avatars.githubusercontent.com/u/28259?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmike","html_url":"https://github.com/sigmike","followers_url":"https://api.github.com/users/sigmike/followers","following_url":"https://api.github.com/users/sigmike/following{/other_user}","gists_url":"https://api.github.com/users/sigmike/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmike/subscriptions","organizations_url":"https://api.github.com/users/sigmike/orgs","repos_url":"https://api.github.com/users/sigmike/repos","events_url":"https://api.github.com/users/sigmike/events{/privacy}","received_events_url":"https://api.github.com/users/sigmike/received_events","type":"User","site_admin":false},"body":"Il faudrait escape text ici (`h(text)`).","created_at":"2015-04-16T15:10:34Z","updated_at":"2015-04-16T15:10:34Z","html_url":"https://github.com/ouvrages/tarteaucitron/pull/5#discussion_r28518105","pull_request_url":"https://api.github.com/repos/ouvrages/tarteaucitron/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/ouvrages/tarteaucitron/pulls/comments/28518105"},"html":{"href":"https://github.com/ouvrages/tarteaucitron/pull/5#discussion_r28518105"},"pull_request":{"href":"https://api.github.com/repos/ouvrages/tarteaucitron/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/ouvrages/tarteaucitron/pulls/5","id":33460506,"html_url":"https://github.com/ouvrages/tarteaucitron/pull/5","diff_url":"https://github.com/ouvrages/tarteaucitron/pull/5.diff","patch_url":"https://github.com/ouvrages/tarteaucitron/pull/5.patch","issue_url":"https://api.github.com/repos/ouvrages/tarteaucitron/issues/5","number":5,"state":"open","locked":false,"title":"Fix #2","user":{"login":"Antoine-C","id":3541876,"avatar_url":"https://avatars.githubusercontent.com/u/3541876?v=3","gravatar_id":"","url":"https://api.github.com/users/Antoine-C","html_url":"https://github.com/Antoine-C","followers_url":"https://api.github.com/users/Antoine-C/followers","following_url":"https://api.github.com/users/Antoine-C/following{/other_user}","gists_url":"https://api.github.com/users/Antoine-C/gists{/gist_id}","starred_url":"https://api.github.com/users/Antoine-C/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Antoine-C/subscriptions","organizations_url":"https://api.github.com/users/Antoine-C/orgs","repos_url":"https://api.github.com/users/Antoine-C/repos","events_url":"https://api.github.com/users/Antoine-C/events{/privacy}","received_events_url":"https://api.github.com/users/Antoine-C/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-16T15:08:30Z","updated_at":"2015-04-16T15:10:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8daebefbeeaef05764650b59b994de7976c2a6d1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ouvrages/tarteaucitron/pulls/5/commits","review_comments_url":"https://api.github.com/repos/ouvrages/tarteaucitron/pulls/5/comments","review_comment_url":"https://api.github.com/repos/ouvrages/tarteaucitron/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ouvrages/tarteaucitron/issues/5/comments","statuses_url":"https://api.github.com/repos/ouvrages/tarteaucitron/statuses/0a0ce702559e5190b6c3a63c19e4112c8a33b3aa","head":{"label":"ouvrages:issue2","ref":"issue2","sha":"0a0ce702559e5190b6c3a63c19e4112c8a33b3aa","user":{"login":"ouvrages","id":632789,"avatar_url":"https://avatars.githubusercontent.com/u/632789?v=3","gravatar_id":"","url":"https://api.github.com/users/ouvrages","html_url":"https://github.com/ouvrages","followers_url":"https://api.github.com/users/ouvrages/followers","following_url":"https://api.github.com/users/ouvrages/following{/other_user}","gists_url":"https://api.github.com/users/ouvrages/gists{/gist_id}","starred_url":"https://api.github.com/users/ouvrages/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ouvrages/subscriptions","organizations_url":"https://api.github.com/users/ouvrages/orgs","repos_url":"https://api.github.com/users/ouvrages/repos","events_url":"https://api.github.com/users/ouvrages/events{/privacy}","received_events_url":"https://api.github.com/users/ouvrages/received_events","type":"Organization","site_admin":false},"repo":{"id":34042665,"name":"tarteaucitron","full_name":"ouvrages/tarteaucitron","owner":{"login":"ouvrages","id":632789,"avatar_url":"https://avatars.githubusercontent.com/u/632789?v=3","gravatar_id":"","url":"https://api.github.com/users/ouvrages","html_url":"https://github.com/ouvrages","followers_url":"https://api.github.com/users/ouvrages/followers","following_url":"https://api.github.com/users/ouvrages/following{/other_user}","gists_url":"https://api.github.com/users/ouvrages/gists{/gist_id}","starred_url":"https://api.github.com/users/ouvrages/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ouvrages/subscriptions","organizations_url":"https://api.github.com/users/ouvrages/orgs","repos_url":"https://api.github.com/users/ouvrages/repos","events_url":"https://api.github.com/users/ouvrages/events{/privacy}","received_events_url":"https://api.github.com/users/ouvrages/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ouvrages/tarteaucitron","description":"Ruby gem to enable tarteaucitron in Rails","fork":false,"url":"https://api.github.com/repos/ouvrages/tarteaucitron","forks_url":"https://api.github.com/repos/ouvrages/tarteaucitron/forks","keys_url":"https://api.github.com/repos/ouvrages/tarteaucitron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ouvrages/tarteaucitron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ouvrages/tarteaucitron/teams","hooks_url":"https://api.github.com/repos/ouvrages/tarteaucitron/hooks","issue_events_url":"https://api.github.com/repos/ouvrages/tarteaucitron/issues/events{/number}","events_url":"https://api.github.com/repos/ouvrages/tarteaucitron/events","assignees_url":"https://api.github.com/repos/ouvrages/tarteaucitron/assignees{/user}","branches_url":"https://api.github.com/repos/ouvrages/tarteaucitron/branches{/branch}","tags_url":"https://api.github.com/repos/ouvrages/tarteaucitron/tags","blobs_url":"https://api.github.com/repos/ouvrages/tarteaucitron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ouvrages/tarteaucitron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ouvrages/tarteaucitron/git/refs{/sha}","trees_url":"https://api.github.com/repos/ouvrages/tarteaucitron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ouvrages/tarteaucitron/statuses/{sha}","languages_url":"https://api.github.com/repos/ouvrages/tarteaucitron/languages","stargazers_url":"https://api.github.com/repos/ouvrages/tarteaucitron/stargazers","contributors_url":"https://api.github.com/repos/ouvrages/tarteaucitron/contributors","subscribers_url":"https://api.github.com/repos/ouvrages/tarteaucitron/subscribers","subscription_url":"https://api.github.com/repos/ouvrages/tarteaucitron/subscription","commits_url":"https://api.github.com/repos/ouvrages/tarteaucitron/commits{/sha}","git_commits_url":"https://api.github.com/repos/ouvrages/tarteaucitron/git/commits{/sha}","comments_url":"https://api.github.com/repos/ouvrages/tarteaucitron/comments{/number}","issue_comment_url":"https://api.github.com/repos/ouvrages/tarteaucitron/issues/comments{/number}","contents_url":"https://api.github.com/repos/ouvrages/tarteaucitron/contents/{+path}","compare_url":"https://api.github.com/repos/ouvrages/tarteaucitron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ouvrages/tarteaucitron/merges","archive_url":"https://api.github.com/repos/ouvrages/tarteaucitron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ouvrages/tarteaucitron/downloads","issues_url":"https://api.github.com/repos/ouvrages/tarteaucitron/issues{/number}","pulls_url":"https://api.github.com/repos/ouvrages/tarteaucitron/pulls{/number}","milestones_url":"https://api.github.com/repos/ouvrages/tarteaucitron/milestones{/number}","notifications_url":"https://api.github.com/repos/ouvrages/tarteaucitron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ouvrages/tarteaucitron/labels{/name}","releases_url":"https://api.github.com/repos/ouvrages/tarteaucitron/releases{/id}","created_at":"2015-04-16T08:05:17Z","updated_at":"2015-04-16T09:10:31Z","pushed_at":"2015-04-16T15:08:31Z","git_url":"git://github.com/ouvrages/tarteaucitron.git","ssh_url":"git@github.com:ouvrages/tarteaucitron.git","clone_url":"https://github.com/ouvrages/tarteaucitron.git","svn_url":"https://github.com/ouvrages/tarteaucitron","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"ouvrages:master","ref":"master","sha":"9507655c33362309508af02b65750885f7ebe459","user":{"login":"ouvrages","id":632789,"avatar_url":"https://avatars.githubusercontent.com/u/632789?v=3","gravatar_id":"","url":"https://api.github.com/users/ouvrages","html_url":"https://github.com/ouvrages","followers_url":"https://api.github.com/users/ouvrages/followers","following_url":"https://api.github.com/users/ouvrages/following{/other_user}","gists_url":"https://api.github.com/users/ouvrages/gists{/gist_id}","starred_url":"https://api.github.com/users/ouvrages/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ouvrages/subscriptions","organizations_url":"https://api.github.com/users/ouvrages/orgs","repos_url":"https://api.github.com/users/ouvrages/repos","events_url":"https://api.github.com/users/ouvrages/events{/privacy}","received_events_url":"https://api.github.com/users/ouvrages/received_events","type":"Organization","site_admin":false},"repo":{"id":34042665,"name":"tarteaucitron","full_name":"ouvrages/tarteaucitron","owner":{"login":"ouvrages","id":632789,"avatar_url":"https://avatars.githubusercontent.com/u/632789?v=3","gravatar_id":"","url":"https://api.github.com/users/ouvrages","html_url":"https://github.com/ouvrages","followers_url":"https://api.github.com/users/ouvrages/followers","following_url":"https://api.github.com/users/ouvrages/following{/other_user}","gists_url":"https://api.github.com/users/ouvrages/gists{/gist_id}","starred_url":"https://api.github.com/users/ouvrages/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ouvrages/subscriptions","organizations_url":"https://api.github.com/users/ouvrages/orgs","repos_url":"https://api.github.com/users/ouvrages/repos","events_url":"https://api.github.com/users/ouvrages/events{/privacy}","received_events_url":"https://api.github.com/users/ouvrages/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ouvrages/tarteaucitron","description":"Ruby gem to enable tarteaucitron in Rails","fork":false,"url":"https://api.github.com/repos/ouvrages/tarteaucitron","forks_url":"https://api.github.com/repos/ouvrages/tarteaucitron/forks","keys_url":"https://api.github.com/repos/ouvrages/tarteaucitron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ouvrages/tarteaucitron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ouvrages/tarteaucitron/teams","hooks_url":"https://api.github.com/repos/ouvrages/tarteaucitron/hooks","issue_events_url":"https://api.github.com/repos/ouvrages/tarteaucitron/issues/events{/number}","events_url":"https://api.github.com/repos/ouvrages/tarteaucitron/events","assignees_url":"https://api.github.com/repos/ouvrages/tarteaucitron/assignees{/user}","branches_url":"https://api.github.com/repos/ouvrages/tarteaucitron/branches{/branch}","tags_url":"https://api.github.com/repos/ouvrages/tarteaucitron/tags","blobs_url":"https://api.github.com/repos/ouvrages/tarteaucitron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ouvrages/tarteaucitron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ouvrages/tarteaucitron/git/refs{/sha}","trees_url":"https://api.github.com/repos/ouvrages/tarteaucitron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ouvrages/tarteaucitron/statuses/{sha}","languages_url":"https://api.github.com/repos/ouvrages/tarteaucitron/languages","stargazers_url":"https://api.github.com/repos/ouvrages/tarteaucitron/stargazers","contributors_url":"https://api.github.com/repos/ouvrages/tarteaucitron/contributors","subscribers_url":"https://api.github.com/repos/ouvrages/tarteaucitron/subscribers","subscription_url":"https://api.github.com/repos/ouvrages/tarteaucitron/subscription","commits_url":"https://api.github.com/repos/ouvrages/tarteaucitron/commits{/sha}","git_commits_url":"https://api.github.com/repos/ouvrages/tarteaucitron/git/commits{/sha}","comments_url":"https://api.github.com/repos/ouvrages/tarteaucitron/comments{/number}","issue_comment_url":"https://api.github.com/repos/ouvrages/tarteaucitron/issues/comments{/number}","contents_url":"https://api.github.com/repos/ouvrages/tarteaucitron/contents/{+path}","compare_url":"https://api.github.com/repos/ouvrages/tarteaucitron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ouvrages/tarteaucitron/merges","archive_url":"https://api.github.com/repos/ouvrages/tarteaucitron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ouvrages/tarteaucitron/downloads","issues_url":"https://api.github.com/repos/ouvrages/tarteaucitron/issues{/number}","pulls_url":"https://api.github.com/repos/ouvrages/tarteaucitron/pulls{/number}","milestones_url":"https://api.github.com/repos/ouvrages/tarteaucitron/milestones{/number}","notifications_url":"https://api.github.com/repos/ouvrages/tarteaucitron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ouvrages/tarteaucitron/labels{/name}","releases_url":"https://api.github.com/repos/ouvrages/tarteaucitron/releases{/id}","created_at":"2015-04-16T08:05:17Z","updated_at":"2015-04-16T09:10:31Z","pushed_at":"2015-04-16T15:08:31Z","git_url":"git://github.com/ouvrages/tarteaucitron.git","ssh_url":"git@github.com:ouvrages/tarteaucitron.git","clone_url":"https://github.com/ouvrages/tarteaucitron.git","svn_url":"https://github.com/ouvrages/tarteaucitron","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ouvrages/tarteaucitron/pulls/5"},"html":{"href":"https://github.com/ouvrages/tarteaucitron/pull/5"},"issue":{"href":"https://api.github.com/repos/ouvrages/tarteaucitron/issues/5"},"comments":{"href":"https://api.github.com/repos/ouvrages/tarteaucitron/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/ouvrages/tarteaucitron/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/ouvrages/tarteaucitron/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ouvrages/tarteaucitron/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/ouvrages/tarteaucitron/statuses/0a0ce702559e5190b6c3a63c19e4112c8a33b3aa"}}}}