{"action":"created","comment":{"url":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/comments/44813068","id":44813068,"diff_hunk":"@@ -1,36 +1,63 @@\n-<!-- <header>\n-  <div class=\"outer-box\">\n-    <div class=\"inner-box\">\n-      <h1>THINGS TO DO</h1>\n-    </div>\n-  </div>\n-</header>\n-<hr> -->\n <div class=\"list\">\n   <div class =\"title\">\n     List\n   </div>\n   <% gray = true %>\n   <% num = 1 %>\n+  <!--Creates task list with alternating gray and white boxes, and strikes through completed tasks  -->\n   <% @tasks.each do |task| %>\n     <% if task.complete.nil? %>\n       <% if gray %>\n         <div class=\"gray-box\">\n           <span><%= num %>    </span><a href=\"/tasks/<%= task.id %>\"><%= task.name.upcase %></a>\n+          <%= button_to \"delete\", \"/tasks/#{task.id}\", method: :delete, data: { :confirm => \"Are you sure?\" }, class: \"delete-button\" %>\n         </div>\n         <% gray = false %>\n         <% num += 1 %>\n+      <!--else the box is white -->","path":"tasks/app/views/tasks/index.html.erb","position":25,"original_position":25,"commit_id":"54f2393002f43340bcdf1c4b8eeea3c438d17de5","original_commit_id":"54f2393002f43340bcdf1c4b8eeea3c438d17de5","user":{"login":"kariabancroft","id":7269204,"avatar_url":"https://avatars.githubusercontent.com/u/7269204?v=3","gravatar_id":"","url":"https://api.github.com/users/kariabancroft","html_url":"https://github.com/kariabancroft","followers_url":"https://api.github.com/users/kariabancroft/followers","following_url":"https://api.github.com/users/kariabancroft/following{/other_user}","gists_url":"https://api.github.com/users/kariabancroft/gists{/gist_id}","starred_url":"https://api.github.com/users/kariabancroft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kariabancroft/subscriptions","organizations_url":"https://api.github.com/users/kariabancroft/orgs","repos_url":"https://api.github.com/users/kariabancroft/repos","events_url":"https://api.github.com/users/kariabancroft/events{/privacy}","received_events_url":"https://api.github.com/users/kariabancroft/received_events","type":"User","site_admin":false},"body":"I think you can use a conditional for the class that is added to the div as opposed to using a conditional for this entire section of code. Especially since you have to duplicate a lot of HTML here which is no good.","created_at":"2015-11-13T18:02:14Z","updated_at":"2015-11-13T18:02:14Z","html_url":"https://github.com/Ada-C4/TaskListRails/pull/59#discussion_r44813068","pull_request_url":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/59","_links":{"self":{"href":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/comments/44813068"},"html":{"href":"https://github.com/Ada-C4/TaskListRails/pull/59#discussion_r44813068"},"pull_request":{"href":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/59"}}},"pull_request":{"url":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/59","id":50601718,"html_url":"https://github.com/Ada-C4/TaskListRails/pull/59","diff_url":"https://github.com/Ada-C4/TaskListRails/pull/59.diff","patch_url":"https://github.com/Ada-C4/TaskListRails/pull/59.patch","issue_url":"https://api.github.com/repos/Ada-C4/TaskListRails/issues/59","number":59,"state":"open","locked":false,"title":"Bmk/master Wave 2","user":{"login":"brittanykohler","id":13111208,"avatar_url":"https://avatars.githubusercontent.com/u/13111208?v=3","gravatar_id":"","url":"https://api.github.com/users/brittanykohler","html_url":"https://github.com/brittanykohler","followers_url":"https://api.github.com/users/brittanykohler/followers","following_url":"https://api.github.com/users/brittanykohler/following{/other_user}","gists_url":"https://api.github.com/users/brittanykohler/gists{/gist_id}","starred_url":"https://api.github.com/users/brittanykohler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brittanykohler/subscriptions","organizations_url":"https://api.github.com/users/brittanykohler/orgs","repos_url":"https://api.github.com/users/brittanykohler/repos","events_url":"https://api.github.com/users/brittanykohler/events{/privacy}","received_events_url":"https://api.github.com/users/brittanykohler/received_events","type":"User","site_admin":false},"body":"I need to start making more git commits! Very poor job on this wave, unfortunately.\r\n\r\nThe Add button on the /tasks/new page doesn't quite line up and I need to figure out what is happening.","created_at":"2015-11-13T03:49:30Z","updated_at":"2015-11-13T18:02:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7cc12c9505da87fe60b6e16a8cb167c4f071810","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/59/commits","review_comments_url":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/59/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/59/comments","statuses_url":"https://api.github.com/repos/Ada-C4/TaskListRails/statuses/54f2393002f43340bcdf1c4b8eeea3c438d17de5","head":{"label":"brittanykohler:bmk/master","ref":"bmk/master","sha":"54f2393002f43340bcdf1c4b8eeea3c438d17de5","user":{"login":"brittanykohler","id":13111208,"avatar_url":"https://avatars.githubusercontent.com/u/13111208?v=3","gravatar_id":"","url":"https://api.github.com/users/brittanykohler","html_url":"https://github.com/brittanykohler","followers_url":"https://api.github.com/users/brittanykohler/followers","following_url":"https://api.github.com/users/brittanykohler/following{/other_user}","gists_url":"https://api.github.com/users/brittanykohler/gists{/gist_id}","starred_url":"https://api.github.com/users/brittanykohler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brittanykohler/subscriptions","organizations_url":"https://api.github.com/users/brittanykohler/orgs","repos_url":"https://api.github.com/users/brittanykohler/repos","events_url":"https://api.github.com/users/brittanykohler/events{/privacy}","received_events_url":"https://api.github.com/users/brittanykohler/received_events","type":"User","site_admin":false},"repo":{"id":45875038,"name":"TaskListRails","full_name":"brittanykohler/TaskListRails","owner":{"login":"brittanykohler","id":13111208,"avatar_url":"https://avatars.githubusercontent.com/u/13111208?v=3","gravatar_id":"","url":"https://api.github.com/users/brittanykohler","html_url":"https://github.com/brittanykohler","followers_url":"https://api.github.com/users/brittanykohler/followers","following_url":"https://api.github.com/users/brittanykohler/following{/other_user}","gists_url":"https://api.github.com/users/brittanykohler/gists{/gist_id}","starred_url":"https://api.github.com/users/brittanykohler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brittanykohler/subscriptions","organizations_url":"https://api.github.com/users/brittanykohler/orgs","repos_url":"https://api.github.com/users/brittanykohler/repos","events_url":"https://api.github.com/users/brittanykohler/events{/privacy}","received_events_url":"https://api.github.com/users/brittanykohler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brittanykohler/TaskListRails","description":"","fork":true,"url":"https://api.github.com/repos/brittanykohler/TaskListRails","forks_url":"https://api.github.com/repos/brittanykohler/TaskListRails/forks","keys_url":"https://api.github.com/repos/brittanykohler/TaskListRails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brittanykohler/TaskListRails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brittanykohler/TaskListRails/teams","hooks_url":"https://api.github.com/repos/brittanykohler/TaskListRails/hooks","issue_events_url":"https://api.github.com/repos/brittanykohler/TaskListRails/issues/events{/number}","events_url":"https://api.github.com/repos/brittanykohler/TaskListRails/events","assignees_url":"https://api.github.com/repos/brittanykohler/TaskListRails/assignees{/user}","branches_url":"https://api.github.com/repos/brittanykohler/TaskListRails/branches{/branch}","tags_url":"https://api.github.com/repos/brittanykohler/TaskListRails/tags","blobs_url":"https://api.github.com/repos/brittanykohler/TaskListRails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brittanykohler/TaskListRails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brittanykohler/TaskListRails/git/refs{/sha}","trees_url":"https://api.github.com/repos/brittanykohler/TaskListRails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brittanykohler/TaskListRails/statuses/{sha}","languages_url":"https://api.github.com/repos/brittanykohler/TaskListRails/languages","stargazers_url":"https://api.github.com/repos/brittanykohler/TaskListRails/stargazers","contributors_url":"https://api.github.com/repos/brittanykohler/TaskListRails/contributors","subscribers_url":"https://api.github.com/repos/brittanykohler/TaskListRails/subscribers","subscription_url":"https://api.github.com/repos/brittanykohler/TaskListRails/subscription","commits_url":"https://api.github.com/repos/brittanykohler/TaskListRails/commits{/sha}","git_commits_url":"https://api.github.com/repos/brittanykohler/TaskListRails/git/commits{/sha}","comments_url":"https://api.github.com/repos/brittanykohler/TaskListRails/comments{/number}","issue_comment_url":"https://api.github.com/repos/brittanykohler/TaskListRails/issues/comments{/number}","contents_url":"https://api.github.com/repos/brittanykohler/TaskListRails/contents/{+path}","compare_url":"https://api.github.com/repos/brittanykohler/TaskListRails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brittanykohler/TaskListRails/merges","archive_url":"https://api.github.com/repos/brittanykohler/TaskListRails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brittanykohler/TaskListRails/downloads","issues_url":"https://api.github.com/repos/brittanykohler/TaskListRails/issues{/number}","pulls_url":"https://api.github.com/repos/brittanykohler/TaskListRails/pulls{/number}","milestones_url":"https://api.github.com/repos/brittanykohler/TaskListRails/milestones{/number}","notifications_url":"https://api.github.com/repos/brittanykohler/TaskListRails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brittanykohler/TaskListRails/labels{/name}","releases_url":"https://api.github.com/repos/brittanykohler/TaskListRails/releases{/id}","created_at":"2015-11-09T23:53:54Z","updated_at":"2015-11-09T23:53:55Z","pushed_at":"2015-11-13T03:44:26Z","git_url":"git://github.com/brittanykohler/TaskListRails.git","ssh_url":"git@github.com:brittanykohler/TaskListRails.git","clone_url":"https://github.com/brittanykohler/TaskListRails.git","svn_url":"https://github.com/brittanykohler/TaskListRails","homepage":null,"size":104,"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:bmk/master","ref":"bmk/master","sha":"1e09b6d3ed8e425a836f9aa3a38ebb73703f5d92","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-13T17:52:10Z","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":1147,"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":13,"forks":22,"open_issues":13,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/59"},"html":{"href":"https://github.com/Ada-C4/TaskListRails/pull/59"},"issue":{"href":"https://api.github.com/repos/Ada-C4/TaskListRails/issues/59"},"comments":{"href":"https://api.github.com/repos/Ada-C4/TaskListRails/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/Ada-C4/TaskListRails/pulls/59/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/59/commits"},"statuses":{"href":"https://api.github.com/repos/Ada-C4/TaskListRails/statuses/54f2393002f43340bcdf1c4b8eeea3c438d17de5"}}}}