{"action":"created","comment":{"url":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/comments/44970978","id":44970978,"diff_hunk":"@@ -3,7 +3,22 @@\n <hr />\n <div class=\"list\">\n   <% @tasks.each do |task| %>\n-    <div class=\"task\"><%= link_to task.name, \"/tasks/#{task.id}\" %>\n-    <%= button_to \"Delete\", { action: :destroy, id: task.id }, :class => \"button\", method: :delete, data: { confirm: 'Are you sure?' } %></div>\n+    <% if task.completed_at.nil? %>","path":"app/views/tasks/index.html.erb","position":6,"original_position":6,"commit_id":"0d44136a88e6a6e5e5dbc65a8600c5cbb9e8d334","original_commit_id":"0d44136a88e6a6e5e5dbc65a8600c5cbb9e8d334","user":{"login":"Hamled","id":66355,"avatar_url":"https://avatars.githubusercontent.com/u/66355?v=3","gravatar_id":"","url":"https://api.github.com/users/Hamled","html_url":"https://github.com/Hamled","followers_url":"https://api.github.com/users/Hamled/followers","following_url":"https://api.github.com/users/Hamled/following{/other_user}","gists_url":"https://api.github.com/users/Hamled/gists{/gist_id}","starred_url":"https://api.github.com/users/Hamled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hamled/subscriptions","organizations_url":"https://api.github.com/users/Hamled/orgs","repos_url":"https://api.github.com/users/Hamled/repos","events_url":"https://api.github.com/users/Hamled/events{/privacy}","received_events_url":"https://api.github.com/users/Hamled/received_events","type":"User","site_admin":false},"body":"A lot of this code is the same for both the `if` and the `else` cases. How might we DRY this out a bit to avoid repeating parts like `<div class=\"task\">` ?","created_at":"2015-11-16T19:36:15Z","updated_at":"2015-11-16T19:36:15Z","html_url":"https://github.com/Ada-C4/TaskListRails/pull/85#discussion_r44970978","pull_request_url":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/85","_links":{"self":{"href":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/comments/44970978"},"html":{"href":"https://github.com/Ada-C4/TaskListRails/pull/85#discussion_r44970978"},"pull_request":{"href":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/85"}}},"pull_request":{"url":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/85","id":50770008,"html_url":"https://github.com/Ada-C4/TaskListRails/pull/85","diff_url":"https://github.com/Ada-C4/TaskListRails/pull/85.diff","patch_url":"https://github.com/Ada-C4/TaskListRails/pull/85.patch","issue_url":"https://api.github.com/repos/Ada-C4/TaskListRails/issues/85","number":85,"state":"open","locked":false,"title":"Sat/master","user":{"login":"trowbrsa","id":6278193,"avatar_url":"https://avatars.githubusercontent.com/u/6278193?v=3","gravatar_id":"","url":"https://api.github.com/users/trowbrsa","html_url":"https://github.com/trowbrsa","followers_url":"https://api.github.com/users/trowbrsa/followers","following_url":"https://api.github.com/users/trowbrsa/following{/other_user}","gists_url":"https://api.github.com/users/trowbrsa/gists{/gist_id}","starred_url":"https://api.github.com/users/trowbrsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trowbrsa/subscriptions","organizations_url":"https://api.github.com/users/trowbrsa/orgs","repos_url":"https://api.github.com/users/trowbrsa/repos","events_url":"https://api.github.com/users/trowbrsa/events{/privacy}","received_events_url":"https://api.github.com/users/trowbrsa/received_events","type":"User","site_admin":false},"body":"Wave 3 semi-complete. I have not DRYed up my code with partials. I plan to do this no later than Wednesday evening. ","created_at":"2015-11-16T04:18:03Z","updated_at":"2015-11-16T19:36:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f31a0a3d574d7697c424c51a97b4437066fa6112","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/85/commits","review_comments_url":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/85/comments","review_comment_url":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ada-C4/TaskListRails/issues/85/comments","statuses_url":"https://api.github.com/repos/Ada-C4/TaskListRails/statuses/0d44136a88e6a6e5e5dbc65a8600c5cbb9e8d334","head":{"label":"trowbrsa:sat/master","ref":"sat/master","sha":"0d44136a88e6a6e5e5dbc65a8600c5cbb9e8d334","user":{"login":"trowbrsa","id":6278193,"avatar_url":"https://avatars.githubusercontent.com/u/6278193?v=3","gravatar_id":"","url":"https://api.github.com/users/trowbrsa","html_url":"https://github.com/trowbrsa","followers_url":"https://api.github.com/users/trowbrsa/followers","following_url":"https://api.github.com/users/trowbrsa/following{/other_user}","gists_url":"https://api.github.com/users/trowbrsa/gists{/gist_id}","starred_url":"https://api.github.com/users/trowbrsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trowbrsa/subscriptions","organizations_url":"https://api.github.com/users/trowbrsa/orgs","repos_url":"https://api.github.com/users/trowbrsa/repos","events_url":"https://api.github.com/users/trowbrsa/events{/privacy}","received_events_url":"https://api.github.com/users/trowbrsa/received_events","type":"User","site_admin":false},"repo":{"id":45875151,"name":"TaskListRails","full_name":"trowbrsa/TaskListRails","owner":{"login":"trowbrsa","id":6278193,"avatar_url":"https://avatars.githubusercontent.com/u/6278193?v=3","gravatar_id":"","url":"https://api.github.com/users/trowbrsa","html_url":"https://github.com/trowbrsa","followers_url":"https://api.github.com/users/trowbrsa/followers","following_url":"https://api.github.com/users/trowbrsa/following{/other_user}","gists_url":"https://api.github.com/users/trowbrsa/gists{/gist_id}","starred_url":"https://api.github.com/users/trowbrsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trowbrsa/subscriptions","organizations_url":"https://api.github.com/users/trowbrsa/orgs","repos_url":"https://api.github.com/users/trowbrsa/repos","events_url":"https://api.github.com/users/trowbrsa/events{/privacy}","received_events_url":"https://api.github.com/users/trowbrsa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trowbrsa/TaskListRails","description":"","fork":true,"url":"https://api.github.com/repos/trowbrsa/TaskListRails","forks_url":"https://api.github.com/repos/trowbrsa/TaskListRails/forks","keys_url":"https://api.github.com/repos/trowbrsa/TaskListRails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trowbrsa/TaskListRails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trowbrsa/TaskListRails/teams","hooks_url":"https://api.github.com/repos/trowbrsa/TaskListRails/hooks","issue_events_url":"https://api.github.com/repos/trowbrsa/TaskListRails/issues/events{/number}","events_url":"https://api.github.com/repos/trowbrsa/TaskListRails/events","assignees_url":"https://api.github.com/repos/trowbrsa/TaskListRails/assignees{/user}","branches_url":"https://api.github.com/repos/trowbrsa/TaskListRails/branches{/branch}","tags_url":"https://api.github.com/repos/trowbrsa/TaskListRails/tags","blobs_url":"https://api.github.com/repos/trowbrsa/TaskListRails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trowbrsa/TaskListRails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trowbrsa/TaskListRails/git/refs{/sha}","trees_url":"https://api.github.com/repos/trowbrsa/TaskListRails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trowbrsa/TaskListRails/statuses/{sha}","languages_url":"https://api.github.com/repos/trowbrsa/TaskListRails/languages","stargazers_url":"https://api.github.com/repos/trowbrsa/TaskListRails/stargazers","contributors_url":"https://api.github.com/repos/trowbrsa/TaskListRails/contributors","subscribers_url":"https://api.github.com/repos/trowbrsa/TaskListRails/subscribers","subscription_url":"https://api.github.com/repos/trowbrsa/TaskListRails/subscription","commits_url":"https://api.github.com/repos/trowbrsa/TaskListRails/commits{/sha}","git_commits_url":"https://api.github.com/repos/trowbrsa/TaskListRails/git/commits{/sha}","comments_url":"https://api.github.com/repos/trowbrsa/TaskListRails/comments{/number}","issue_comment_url":"https://api.github.com/repos/trowbrsa/TaskListRails/issues/comments{/number}","contents_url":"https://api.github.com/repos/trowbrsa/TaskListRails/contents/{+path}","compare_url":"https://api.github.com/repos/trowbrsa/TaskListRails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trowbrsa/TaskListRails/merges","archive_url":"https://api.github.com/repos/trowbrsa/TaskListRails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trowbrsa/TaskListRails/downloads","issues_url":"https://api.github.com/repos/trowbrsa/TaskListRails/issues{/number}","pulls_url":"https://api.github.com/repos/trowbrsa/TaskListRails/pulls{/number}","milestones_url":"https://api.github.com/repos/trowbrsa/TaskListRails/milestones{/number}","notifications_url":"https://api.github.com/repos/trowbrsa/TaskListRails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trowbrsa/TaskListRails/labels{/name}","releases_url":"https://api.github.com/repos/trowbrsa/TaskListRails/releases{/id}","created_at":"2015-11-09T23:56:54Z","updated_at":"2015-11-09T23:56:54Z","pushed_at":"2015-11-16T04:53:07Z","git_url":"git://github.com/trowbrsa/TaskListRails.git","ssh_url":"git@github.com:trowbrsa/TaskListRails.git","clone_url":"https://github.com/trowbrsa/TaskListRails.git","svn_url":"https://github.com/trowbrsa/TaskListRails","homepage":null,"size":120,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Ada-C4:sat/master","ref":"sat/master","sha":"237bdf62371941290e1097765bc8284ffd77f8e0","user":{"login":"Ada-C4","id":14096372,"avatar_url":"https://avatars.githubusercontent.com/u/14096372?v=3","gravatar_id":"","url":"https://api.github.com/users/Ada-C4","html_url":"https://github.com/Ada-C4","followers_url":"https://api.github.com/users/Ada-C4/followers","following_url":"https://api.github.com/users/Ada-C4/following{/other_user}","gists_url":"https://api.github.com/users/Ada-C4/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-C4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-C4/subscriptions","organizations_url":"https://api.github.com/users/Ada-C4/orgs","repos_url":"https://api.github.com/users/Ada-C4/repos","events_url":"https://api.github.com/users/Ada-C4/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-C4/received_events","type":"Organization","site_admin":false},"repo":{"id":45871447,"name":"TaskListRails","full_name":"Ada-C4/TaskListRails","owner":{"login":"Ada-C4","id":14096372,"avatar_url":"https://avatars.githubusercontent.com/u/14096372?v=3","gravatar_id":"","url":"https://api.github.com/users/Ada-C4","html_url":"https://github.com/Ada-C4","followers_url":"https://api.github.com/users/Ada-C4/followers","following_url":"https://api.github.com/users/Ada-C4/following{/other_user}","gists_url":"https://api.github.com/users/Ada-C4/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-C4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-C4/subscriptions","organizations_url":"https://api.github.com/users/Ada-C4/orgs","repos_url":"https://api.github.com/users/Ada-C4/repos","events_url":"https://api.github.com/users/Ada-C4/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-C4/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ada-C4/TaskListRails","description":"","fork":true,"url":"https://api.github.com/repos/Ada-C4/TaskListRails","forks_url":"https://api.github.com/repos/Ada-C4/TaskListRails/forks","keys_url":"https://api.github.com/repos/Ada-C4/TaskListRails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ada-C4/TaskListRails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ada-C4/TaskListRails/teams","hooks_url":"https://api.github.com/repos/Ada-C4/TaskListRails/hooks","issue_events_url":"https://api.github.com/repos/Ada-C4/TaskListRails/issues/events{/number}","events_url":"https://api.github.com/repos/Ada-C4/TaskListRails/events","assignees_url":"https://api.github.com/repos/Ada-C4/TaskListRails/assignees{/user}","branches_url":"https://api.github.com/repos/Ada-C4/TaskListRails/branches{/branch}","tags_url":"https://api.github.com/repos/Ada-C4/TaskListRails/tags","blobs_url":"https://api.github.com/repos/Ada-C4/TaskListRails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ada-C4/TaskListRails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ada-C4/TaskListRails/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ada-C4/TaskListRails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ada-C4/TaskListRails/statuses/{sha}","languages_url":"https://api.github.com/repos/Ada-C4/TaskListRails/languages","stargazers_url":"https://api.github.com/repos/Ada-C4/TaskListRails/stargazers","contributors_url":"https://api.github.com/repos/Ada-C4/TaskListRails/contributors","subscribers_url":"https://api.github.com/repos/Ada-C4/TaskListRails/subscribers","subscription_url":"https://api.github.com/repos/Ada-C4/TaskListRails/subscription","commits_url":"https://api.github.com/repos/Ada-C4/TaskListRails/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ada-C4/TaskListRails/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ada-C4/TaskListRails/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ada-C4/TaskListRails/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ada-C4/TaskListRails/contents/{+path}","compare_url":"https://api.github.com/repos/Ada-C4/TaskListRails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ada-C4/TaskListRails/merges","archive_url":"https://api.github.com/repos/Ada-C4/TaskListRails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ada-C4/TaskListRails/downloads","issues_url":"https://api.github.com/repos/Ada-C4/TaskListRails/issues{/number}","pulls_url":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls{/number}","milestones_url":"https://api.github.com/repos/Ada-C4/TaskListRails/milestones{/number}","notifications_url":"https://api.github.com/repos/Ada-C4/TaskListRails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ada-C4/TaskListRails/labels{/name}","releases_url":"https://api.github.com/repos/Ada-C4/TaskListRails/releases{/id}","created_at":"2015-11-09T22:36:26Z","updated_at":"2015-11-09T22:36:27Z","pushed_at":"2015-11-16T19:32:13Z","git_url":"git://github.com/Ada-C4/TaskListRails.git","ssh_url":"git@github.com:Ada-C4/TaskListRails.git","clone_url":"https://github.com/Ada-C4/TaskListRails.git","svn_url":"https://github.com/Ada-C4/TaskListRails","homepage":null,"size":21700,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":4,"forks":22,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/85"},"html":{"href":"https://github.com/Ada-C4/TaskListRails/pull/85"},"issue":{"href":"https://api.github.com/repos/Ada-C4/TaskListRails/issues/85"},"comments":{"href":"https://api.github.com/repos/Ada-C4/TaskListRails/issues/85/comments"},"review_comments":{"href":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/85/comments"},"review_comment":{"href":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/85/commits"},"statuses":{"href":"https://api.github.com/repos/Ada-C4/TaskListRails/statuses/0d44136a88e6a6e5e5dbc65a8600c5cbb9e8d334"}}}}