{"action":"created","comment":{"url":"https://api.github.com/repos/renuo/renuo-cms-client/pulls/comments/28755878","id":28755878,"diff_hunk":"@@ -0,0 +1,105 @@\n+'use strict'\n+\n+class RenuoCmsClient\n+\n+  constructor: ->\n+    @initializeContentBlocks =>\n+      $('a.edit').click =>\n+        # TODO: Fix this hack!\n+        `var editLink = this`\n+        @getContentBlockForEdit $(editLink).parent().parent().attr('data-block'), =>\n+          $('a.save').click =>\n+            `var saveLink = this`\n+            newContent = $(saveLink).parent().parent().find('textarea').val()\n+            blockID = $(saveLink).parent().parent().attr('data-block')\n+            @updateContentBlock blockID, newContent\n+\n+  getApiKey: ->\n+    'Token token=772a91a136caa729fb8e09277c05310e'","path":"src/coffee/renuo_cms_client.coffee","position":18,"original_position":18,"commit_id":"429694e3353a8e4c0ba89ede3cd9659f137540a5","original_commit_id":"429694e3353a8e4c0ba89ede3cd9659f137540a5","user":{"login":"lukaselmer","id":326935,"avatar_url":"https://avatars.githubusercontent.com/u/326935?v=3","gravatar_id":"","url":"https://api.github.com/users/lukaselmer","html_url":"https://github.com/lukaselmer","followers_url":"https://api.github.com/users/lukaselmer/followers","following_url":"https://api.github.com/users/lukaselmer/following{/other_user}","gists_url":"https://api.github.com/users/lukaselmer/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaselmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaselmer/subscriptions","organizations_url":"https://api.github.com/users/lukaselmer/orgs","repos_url":"https://api.github.com/users/lukaselmer/repos","events_url":"https://api.github.com/users/lukaselmer/events{/privacy}","received_events_url":"https://api.github.com/users/lukaselmer/received_events","type":"User","site_admin":false},"body":"We should extract this into a config, so we can adjust it in production.","created_at":"2015-04-21T07:38:40Z","updated_at":"2015-04-21T07:38:40Z","html_url":"https://github.com/renuo/renuo-cms-client/pull/1#discussion_r28755878","pull_request_url":"https://api.github.com/repos/renuo/renuo-cms-client/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/renuo/renuo-cms-client/pulls/comments/28755878"},"html":{"href":"https://github.com/renuo/renuo-cms-client/pull/1#discussion_r28755878"},"pull_request":{"href":"https://api.github.com/repos/renuo/renuo-cms-client/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/renuo/renuo-cms-client/pulls/1","id":33520909,"html_url":"https://github.com/renuo/renuo-cms-client/pull/1","diff_url":"https://github.com/renuo/renuo-cms-client/pull/1.diff","patch_url":"https://github.com/renuo/renuo-cms-client/pull/1.patch","issue_url":"https://api.github.com/repos/renuo/renuo-cms-client/issues/1","number":1,"state":"open","locked":false,"title":"Feature/3025","user":{"login":"nicolaseckhart","id":8710325,"avatar_url":"https://avatars.githubusercontent.com/u/8710325?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolaseckhart","html_url":"https://github.com/nicolaseckhart","followers_url":"https://api.github.com/users/nicolaseckhart/followers","following_url":"https://api.github.com/users/nicolaseckhart/following{/other_user}","gists_url":"https://api.github.com/users/nicolaseckhart/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolaseckhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolaseckhart/subscriptions","organizations_url":"https://api.github.com/users/nicolaseckhart/orgs","repos_url":"https://api.github.com/users/nicolaseckhart/repos","events_url":"https://api.github.com/users/nicolaseckhart/events{/privacy}","received_events_url":"https://api.github.com/users/nicolaseckhart/received_events","type":"User","site_admin":false},"body":"Created the Gruntfile with tasks for compiling, watching and testing. Converted script from Javascript into Coffeescript. Wrote several tests for the current functions.","created_at":"2015-04-17T07:40:18Z","updated_at":"2015-04-21T07:38:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ebfd350f2415cbcfcdce358801716a446ccc3d9b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/renuo/renuo-cms-client/pulls/1/commits","review_comments_url":"https://api.github.com/repos/renuo/renuo-cms-client/pulls/1/comments","review_comment_url":"https://api.github.com/repos/renuo/renuo-cms-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/renuo/renuo-cms-client/issues/1/comments","statuses_url":"https://api.github.com/repos/renuo/renuo-cms-client/statuses/429694e3353a8e4c0ba89ede3cd9659f137540a5","head":{"label":"renuo:feature/3025","ref":"feature/3025","sha":"429694e3353a8e4c0ba89ede3cd9659f137540a5","user":{"login":"renuo","id":1863488,"avatar_url":"https://avatars.githubusercontent.com/u/1863488?v=3","gravatar_id":"","url":"https://api.github.com/users/renuo","html_url":"https://github.com/renuo","followers_url":"https://api.github.com/users/renuo/followers","following_url":"https://api.github.com/users/renuo/following{/other_user}","gists_url":"https://api.github.com/users/renuo/gists{/gist_id}","starred_url":"https://api.github.com/users/renuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renuo/subscriptions","organizations_url":"https://api.github.com/users/renuo/orgs","repos_url":"https://api.github.com/users/renuo/repos","events_url":"https://api.github.com/users/renuo/events{/privacy}","received_events_url":"https://api.github.com/users/renuo/received_events","type":"Organization","site_admin":false},"repo":{"id":33187804,"name":"renuo-cms-client","full_name":"renuo/renuo-cms-client","owner":{"login":"renuo","id":1863488,"avatar_url":"https://avatars.githubusercontent.com/u/1863488?v=3","gravatar_id":"","url":"https://api.github.com/users/renuo","html_url":"https://github.com/renuo","followers_url":"https://api.github.com/users/renuo/followers","following_url":"https://api.github.com/users/renuo/following{/other_user}","gists_url":"https://api.github.com/users/renuo/gists{/gist_id}","starred_url":"https://api.github.com/users/renuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renuo/subscriptions","organizations_url":"https://api.github.com/users/renuo/orgs","repos_url":"https://api.github.com/users/renuo/repos","events_url":"https://api.github.com/users/renuo/events{/privacy}","received_events_url":"https://api.github.com/users/renuo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/renuo/renuo-cms-client","description":"Renuo CMS Client","fork":false,"url":"https://api.github.com/repos/renuo/renuo-cms-client","forks_url":"https://api.github.com/repos/renuo/renuo-cms-client/forks","keys_url":"https://api.github.com/repos/renuo/renuo-cms-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/renuo/renuo-cms-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/renuo/renuo-cms-client/teams","hooks_url":"https://api.github.com/repos/renuo/renuo-cms-client/hooks","issue_events_url":"https://api.github.com/repos/renuo/renuo-cms-client/issues/events{/number}","events_url":"https://api.github.com/repos/renuo/renuo-cms-client/events","assignees_url":"https://api.github.com/repos/renuo/renuo-cms-client/assignees{/user}","branches_url":"https://api.github.com/repos/renuo/renuo-cms-client/branches{/branch}","tags_url":"https://api.github.com/repos/renuo/renuo-cms-client/tags","blobs_url":"https://api.github.com/repos/renuo/renuo-cms-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/renuo/renuo-cms-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/renuo/renuo-cms-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/renuo/renuo-cms-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/renuo/renuo-cms-client/statuses/{sha}","languages_url":"https://api.github.com/repos/renuo/renuo-cms-client/languages","stargazers_url":"https://api.github.com/repos/renuo/renuo-cms-client/stargazers","contributors_url":"https://api.github.com/repos/renuo/renuo-cms-client/contributors","subscribers_url":"https://api.github.com/repos/renuo/renuo-cms-client/subscribers","subscription_url":"https://api.github.com/repos/renuo/renuo-cms-client/subscription","commits_url":"https://api.github.com/repos/renuo/renuo-cms-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/renuo/renuo-cms-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/renuo/renuo-cms-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/renuo/renuo-cms-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/renuo/renuo-cms-client/contents/{+path}","compare_url":"https://api.github.com/repos/renuo/renuo-cms-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/renuo/renuo-cms-client/merges","archive_url":"https://api.github.com/repos/renuo/renuo-cms-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/renuo/renuo-cms-client/downloads","issues_url":"https://api.github.com/repos/renuo/renuo-cms-client/issues{/number}","pulls_url":"https://api.github.com/repos/renuo/renuo-cms-client/pulls{/number}","milestones_url":"https://api.github.com/repos/renuo/renuo-cms-client/milestones{/number}","notifications_url":"https://api.github.com/repos/renuo/renuo-cms-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/renuo/renuo-cms-client/labels{/name}","releases_url":"https://api.github.com/repos/renuo/renuo-cms-client/releases{/id}","created_at":"2015-03-31T13:46:38Z","updated_at":"2015-03-31T13:51:57Z","pushed_at":"2015-04-17T07:40:18Z","git_url":"git://github.com/renuo/renuo-cms-client.git","ssh_url":"git@github.com:renuo/renuo-cms-client.git","clone_url":"https://github.com/renuo/renuo-cms-client.git","svn_url":"https://github.com/renuo/renuo-cms-client","homepage":null,"size":580,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"renuo:master","ref":"master","sha":"48563a82663133c37de3aa73fca03bd43a8c6144","user":{"login":"renuo","id":1863488,"avatar_url":"https://avatars.githubusercontent.com/u/1863488?v=3","gravatar_id":"","url":"https://api.github.com/users/renuo","html_url":"https://github.com/renuo","followers_url":"https://api.github.com/users/renuo/followers","following_url":"https://api.github.com/users/renuo/following{/other_user}","gists_url":"https://api.github.com/users/renuo/gists{/gist_id}","starred_url":"https://api.github.com/users/renuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renuo/subscriptions","organizations_url":"https://api.github.com/users/renuo/orgs","repos_url":"https://api.github.com/users/renuo/repos","events_url":"https://api.github.com/users/renuo/events{/privacy}","received_events_url":"https://api.github.com/users/renuo/received_events","type":"Organization","site_admin":false},"repo":{"id":33187804,"name":"renuo-cms-client","full_name":"renuo/renuo-cms-client","owner":{"login":"renuo","id":1863488,"avatar_url":"https://avatars.githubusercontent.com/u/1863488?v=3","gravatar_id":"","url":"https://api.github.com/users/renuo","html_url":"https://github.com/renuo","followers_url":"https://api.github.com/users/renuo/followers","following_url":"https://api.github.com/users/renuo/following{/other_user}","gists_url":"https://api.github.com/users/renuo/gists{/gist_id}","starred_url":"https://api.github.com/users/renuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renuo/subscriptions","organizations_url":"https://api.github.com/users/renuo/orgs","repos_url":"https://api.github.com/users/renuo/repos","events_url":"https://api.github.com/users/renuo/events{/privacy}","received_events_url":"https://api.github.com/users/renuo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/renuo/renuo-cms-client","description":"Renuo CMS Client","fork":false,"url":"https://api.github.com/repos/renuo/renuo-cms-client","forks_url":"https://api.github.com/repos/renuo/renuo-cms-client/forks","keys_url":"https://api.github.com/repos/renuo/renuo-cms-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/renuo/renuo-cms-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/renuo/renuo-cms-client/teams","hooks_url":"https://api.github.com/repos/renuo/renuo-cms-client/hooks","issue_events_url":"https://api.github.com/repos/renuo/renuo-cms-client/issues/events{/number}","events_url":"https://api.github.com/repos/renuo/renuo-cms-client/events","assignees_url":"https://api.github.com/repos/renuo/renuo-cms-client/assignees{/user}","branches_url":"https://api.github.com/repos/renuo/renuo-cms-client/branches{/branch}","tags_url":"https://api.github.com/repos/renuo/renuo-cms-client/tags","blobs_url":"https://api.github.com/repos/renuo/renuo-cms-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/renuo/renuo-cms-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/renuo/renuo-cms-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/renuo/renuo-cms-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/renuo/renuo-cms-client/statuses/{sha}","languages_url":"https://api.github.com/repos/renuo/renuo-cms-client/languages","stargazers_url":"https://api.github.com/repos/renuo/renuo-cms-client/stargazers","contributors_url":"https://api.github.com/repos/renuo/renuo-cms-client/contributors","subscribers_url":"https://api.github.com/repos/renuo/renuo-cms-client/subscribers","subscription_url":"https://api.github.com/repos/renuo/renuo-cms-client/subscription","commits_url":"https://api.github.com/repos/renuo/renuo-cms-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/renuo/renuo-cms-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/renuo/renuo-cms-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/renuo/renuo-cms-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/renuo/renuo-cms-client/contents/{+path}","compare_url":"https://api.github.com/repos/renuo/renuo-cms-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/renuo/renuo-cms-client/merges","archive_url":"https://api.github.com/repos/renuo/renuo-cms-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/renuo/renuo-cms-client/downloads","issues_url":"https://api.github.com/repos/renuo/renuo-cms-client/issues{/number}","pulls_url":"https://api.github.com/repos/renuo/renuo-cms-client/pulls{/number}","milestones_url":"https://api.github.com/repos/renuo/renuo-cms-client/milestones{/number}","notifications_url":"https://api.github.com/repos/renuo/renuo-cms-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/renuo/renuo-cms-client/labels{/name}","releases_url":"https://api.github.com/repos/renuo/renuo-cms-client/releases{/id}","created_at":"2015-03-31T13:46:38Z","updated_at":"2015-03-31T13:51:57Z","pushed_at":"2015-04-17T07:40:18Z","git_url":"git://github.com/renuo/renuo-cms-client.git","ssh_url":"git@github.com:renuo/renuo-cms-client.git","clone_url":"https://github.com/renuo/renuo-cms-client.git","svn_url":"https://github.com/renuo/renuo-cms-client","homepage":null,"size":580,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/renuo/renuo-cms-client/pulls/1"},"html":{"href":"https://github.com/renuo/renuo-cms-client/pull/1"},"issue":{"href":"https://api.github.com/repos/renuo/renuo-cms-client/issues/1"},"comments":{"href":"https://api.github.com/repos/renuo/renuo-cms-client/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/renuo/renuo-cms-client/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/renuo/renuo-cms-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/renuo/renuo-cms-client/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/renuo/renuo-cms-client/statuses/429694e3353a8e4c0ba89ede3cd9659f137540a5"}}}}