{"action":"created","comment":{"url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/pulls/comments/74094622","id":74094622,"diff_hunk":"@@ -72,3 +74,79 @@ App.views.Project.addChild('ProjectSidebar', {\n   }\n });\n \n+\n+App.views.Project.addChild('ProjectSidebarMobile', {\n+  el: '#project-sidebar-mobile',\n+\n+  events:{\n+    \"click .show_reward_form\": \"showRewardForm\",\n+    \"click .card-reward\" : \"selectReward\"\n+  },\n+\n+  selectReward: function(event){\n+    var url = this.$(event.currentTarget).data('new_contribution_url');\n+    this.navigate(url);\n+    return false;\n+  },\n+\n+  activate: function() {","path":"app/assets/javascripts/app/project/project_sidebar.js","position":30,"original_position":30,"commit_id":"fdae25d7154c841d6d1a09af59c507468f395521","original_commit_id":"fdae25d7154c841d6d1a09af59c507468f395521","user":{"login":"vitortalaia","id":5838414,"avatar_url":"https://avatars.githubusercontent.com/u/5838414?v=3","gravatar_id":"","url":"https://api.github.com/users/vitortalaia","html_url":"https://github.com/vitortalaia","followers_url":"https://api.github.com/users/vitortalaia/followers","following_url":"https://api.github.com/users/vitortalaia/following{/other_user}","gists_url":"https://api.github.com/users/vitortalaia/gists{/gist_id}","starred_url":"https://api.github.com/users/vitortalaia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitortalaia/subscriptions","organizations_url":"https://api.github.com/users/vitortalaia/orgs","repos_url":"https://api.github.com/users/vitortalaia/repos","events_url":"https://api.github.com/users/vitortalaia/events{/privacy}","received_events_url":"https://api.github.com/users/vitortalaia/received_events","type":"User","site_admin":false},"body":"Esse `#activate` aqui é igualzinho aquele de cima. O que tu pode fazer aqui é criar um objeto mais genérico contendo as coisas que são iguais em ambas as sidebars, e usar [`extend` do underscore](http://underscorejs.org/#extend) para evitar essa repetição de código.","created_at":"2016-08-09T16:33:48Z","updated_at":"2016-08-09T16:33:48Z","html_url":"https://github.com/juntos-com-vc/juntos.com.vc/pull/186#discussion_r74094622","pull_request_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/pulls/186","_links":{"self":{"href":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/pulls/comments/74094622"},"html":{"href":"https://github.com/juntos-com-vc/juntos.com.vc/pull/186#discussion_r74094622"},"pull_request":{"href":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/pulls/186"}}},"pull_request":{"url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/pulls/186","id":80650977,"html_url":"https://github.com/juntos-com-vc/juntos.com.vc/pull/186","diff_url":"https://github.com/juntos-com-vc/juntos.com.vc/pull/186.diff","patch_url":"https://github.com/juntos-com-vc/juntos.com.vc/pull/186.patch","issue_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/issues/186","number":186,"state":"open","locked":false,"title":"Campain ","user":{"login":"matheuscla","id":12254845,"avatar_url":"https://avatars.githubusercontent.com/u/12254845?v=3","gravatar_id":"","url":"https://api.github.com/users/matheuscla","html_url":"https://github.com/matheuscla","followers_url":"https://api.github.com/users/matheuscla/followers","following_url":"https://api.github.com/users/matheuscla/following{/other_user}","gists_url":"https://api.github.com/users/matheuscla/gists{/gist_id}","starred_url":"https://api.github.com/users/matheuscla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matheuscla/subscriptions","organizations_url":"https://api.github.com/users/matheuscla/orgs","repos_url":"https://api.github.com/users/matheuscla/repos","events_url":"https://api.github.com/users/matheuscla/events{/privacy}","received_events_url":"https://api.github.com/users/matheuscla/received_events","type":"User","site_admin":false},"body":"This pr aim to fix contribution display and rewards on desktop.","created_at":"2016-08-09T16:21:29Z","updated_at":"2016-08-09T16:33:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/pulls/186/commits","review_comments_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/pulls/186/comments","review_comment_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/issues/186/comments","statuses_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/statuses/fdae25d7154c841d6d1a09af59c507468f395521","head":{"label":"juntos-com-vc:Layout-Campain","ref":"Layout-Campain","sha":"fdae25d7154c841d6d1a09af59c507468f395521","user":{"login":"juntos-com-vc","id":16776745,"avatar_url":"https://avatars.githubusercontent.com/u/16776745?v=3","gravatar_id":"","url":"https://api.github.com/users/juntos-com-vc","html_url":"https://github.com/juntos-com-vc","followers_url":"https://api.github.com/users/juntos-com-vc/followers","following_url":"https://api.github.com/users/juntos-com-vc/following{/other_user}","gists_url":"https://api.github.com/users/juntos-com-vc/gists{/gist_id}","starred_url":"https://api.github.com/users/juntos-com-vc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juntos-com-vc/subscriptions","organizations_url":"https://api.github.com/users/juntos-com-vc/orgs","repos_url":"https://api.github.com/users/juntos-com-vc/repos","events_url":"https://api.github.com/users/juntos-com-vc/events{/privacy}","received_events_url":"https://api.github.com/users/juntos-com-vc/received_events","type":"Organization","site_admin":false},"repo":{"id":25652386,"name":"juntos.com.vc","full_name":"juntos-com-vc/juntos.com.vc","owner":{"login":"juntos-com-vc","id":16776745,"avatar_url":"https://avatars.githubusercontent.com/u/16776745?v=3","gravatar_id":"","url":"https://api.github.com/users/juntos-com-vc","html_url":"https://github.com/juntos-com-vc","followers_url":"https://api.github.com/users/juntos-com-vc/followers","following_url":"https://api.github.com/users/juntos-com-vc/following{/other_user}","gists_url":"https://api.github.com/users/juntos-com-vc/gists{/gist_id}","starred_url":"https://api.github.com/users/juntos-com-vc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juntos-com-vc/subscriptions","organizations_url":"https://api.github.com/users/juntos-com-vc/orgs","repos_url":"https://api.github.com/users/juntos-com-vc/repos","events_url":"https://api.github.com/users/juntos-com-vc/events{/privacy}","received_events_url":"https://api.github.com/users/juntos-com-vc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/juntos-com-vc/juntos.com.vc","description":"","fork":false,"url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc","forks_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/forks","keys_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/teams","hooks_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/hooks","issue_events_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/issues/events{/number}","events_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/events","assignees_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/assignees{/user}","branches_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/branches{/branch}","tags_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/tags","blobs_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/git/refs{/sha}","trees_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/statuses/{sha}","languages_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/languages","stargazers_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/stargazers","contributors_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/contributors","subscribers_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/subscribers","subscription_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/subscription","commits_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/commits{/sha}","git_commits_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/git/commits{/sha}","comments_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/comments{/number}","issue_comment_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/issues/comments{/number}","contents_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/contents/{+path}","compare_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/merges","archive_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/downloads","issues_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/issues{/number}","pulls_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/pulls{/number}","milestones_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/milestones{/number}","notifications_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/labels{/name}","releases_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/releases{/id}","deployments_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/deployments","created_at":"2014-10-23T18:43:07Z","updated_at":"2016-06-10T21:55:40Z","pushed_at":"2016-08-09T16:21:29Z","git_url":"git://github.com/juntos-com-vc/juntos.com.vc.git","ssh_url":"git@github.com:juntos-com-vc/juntos.com.vc.git","clone_url":"https://github.com/juntos-com-vc/juntos.com.vc.git","svn_url":"https://github.com/juntos-com-vc/juntos.com.vc","homepage":null,"size":50575,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":4,"default_branch":"master"}},"base":{"label":"juntos-com-vc:master","ref":"master","sha":"b264aa7004a4dfa188c0d37d585e942cf1132d26","user":{"login":"juntos-com-vc","id":16776745,"avatar_url":"https://avatars.githubusercontent.com/u/16776745?v=3","gravatar_id":"","url":"https://api.github.com/users/juntos-com-vc","html_url":"https://github.com/juntos-com-vc","followers_url":"https://api.github.com/users/juntos-com-vc/followers","following_url":"https://api.github.com/users/juntos-com-vc/following{/other_user}","gists_url":"https://api.github.com/users/juntos-com-vc/gists{/gist_id}","starred_url":"https://api.github.com/users/juntos-com-vc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juntos-com-vc/subscriptions","organizations_url":"https://api.github.com/users/juntos-com-vc/orgs","repos_url":"https://api.github.com/users/juntos-com-vc/repos","events_url":"https://api.github.com/users/juntos-com-vc/events{/privacy}","received_events_url":"https://api.github.com/users/juntos-com-vc/received_events","type":"Organization","site_admin":false},"repo":{"id":25652386,"name":"juntos.com.vc","full_name":"juntos-com-vc/juntos.com.vc","owner":{"login":"juntos-com-vc","id":16776745,"avatar_url":"https://avatars.githubusercontent.com/u/16776745?v=3","gravatar_id":"","url":"https://api.github.com/users/juntos-com-vc","html_url":"https://github.com/juntos-com-vc","followers_url":"https://api.github.com/users/juntos-com-vc/followers","following_url":"https://api.github.com/users/juntos-com-vc/following{/other_user}","gists_url":"https://api.github.com/users/juntos-com-vc/gists{/gist_id}","starred_url":"https://api.github.com/users/juntos-com-vc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juntos-com-vc/subscriptions","organizations_url":"https://api.github.com/users/juntos-com-vc/orgs","repos_url":"https://api.github.com/users/juntos-com-vc/repos","events_url":"https://api.github.com/users/juntos-com-vc/events{/privacy}","received_events_url":"https://api.github.com/users/juntos-com-vc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/juntos-com-vc/juntos.com.vc","description":"","fork":false,"url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc","forks_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/forks","keys_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/teams","hooks_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/hooks","issue_events_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/issues/events{/number}","events_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/events","assignees_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/assignees{/user}","branches_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/branches{/branch}","tags_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/tags","blobs_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/git/refs{/sha}","trees_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/statuses/{sha}","languages_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/languages","stargazers_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/stargazers","contributors_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/contributors","subscribers_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/subscribers","subscription_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/subscription","commits_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/commits{/sha}","git_commits_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/git/commits{/sha}","comments_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/comments{/number}","issue_comment_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/issues/comments{/number}","contents_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/contents/{+path}","compare_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/merges","archive_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/downloads","issues_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/issues{/number}","pulls_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/pulls{/number}","milestones_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/milestones{/number}","notifications_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/labels{/name}","releases_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/releases{/id}","deployments_url":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/deployments","created_at":"2014-10-23T18:43:07Z","updated_at":"2016-06-10T21:55:40Z","pushed_at":"2016-08-09T16:21:29Z","git_url":"git://github.com/juntos-com-vc/juntos.com.vc.git","ssh_url":"git@github.com:juntos-com-vc/juntos.com.vc.git","clone_url":"https://github.com/juntos-com-vc/juntos.com.vc.git","svn_url":"https://github.com/juntos-com-vc/juntos.com.vc","homepage":null,"size":50575,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/pulls/186"},"html":{"href":"https://github.com/juntos-com-vc/juntos.com.vc/pull/186"},"issue":{"href":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/issues/186"},"comments":{"href":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/issues/186/comments"},"review_comments":{"href":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/pulls/186/comments"},"review_comment":{"href":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/pulls/186/commits"},"statuses":{"href":"https://api.github.com/repos/juntos-com-vc/juntos.com.vc/statuses/fdae25d7154c841d6d1a09af59c507468f395521"}}}}
{"actor":{"display_login":"vitortalaia"}}