{"action":"created","comment":{"url":"https://api.github.com/repos/ctram/myflix/pulls/comments/27283678","id":27283678,"diff_hunk":"@@ -0,0 +1,33 @@\n+%section.my_queue.container\n+  .row\n+    .col-sm-10.col-sm-offset-1\n+      %article\n+        %header\n+          %h2 My Queue\n+        %table.table\n+          %thead\n+            %tr\n+              %th(width=\"10%\") List Order\n+              %th(width=\"30%\") Video Title\n+              %th(width=\"10%\") Play\n+              %th(width=\"20%\") Rating\n+              %th(width=\"15%\") Genre\n+              %th(width=\"15%\") Remove\n+          %tbody\n+            - @queue_items.each do |queue_item|\n+              %tr\n+                %td= queue_item.position\n+\n+                %td\n+                  = link_to(\"#{queue_item.video_title}\", video_path(queue_item.video))\n+                %td\n+                  = button_to \"Play\", nil, class: \"btn btn-default\"\n+                %td\n+                  = queue_item.rating\n+                %td\n+                  = link_to(\"#{queue_item.category.name}\", category_path(queue_item.category))","path":"app/views/queue_items/index.html.haml","position":28,"original_position":28,"commit_id":"0e63b7a0a562f295dae878cfd8628d58aed8e6fd","original_commit_id":"0e63b7a0a562f295dae878cfd8628d58aed8e6fd","user":{"login":"tomtomecek","id":7385469,"avatar_url":"https://avatars.githubusercontent.com/u/7385469?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtomecek","html_url":"https://github.com/tomtomecek","followers_url":"https://api.github.com/users/tomtomecek/followers","following_url":"https://api.github.com/users/tomtomecek/following{/other_user}","gists_url":"https://api.github.com/users/tomtomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtomecek/subscriptions","organizations_url":"https://api.github.com/users/tomtomecek/orgs","repos_url":"https://api.github.com/users/tomtomecek/repos","events_url":"https://api.github.com/users/tomtomecek/events{/privacy}","received_events_url":"https://api.github.com/users/tomtomecek/received_events","type":"User","site_admin":false},"body":"You can use `queue_item.category` shortcut instead `category_path(queue_item.category)`.","created_at":"2015-03-27T09:35:59Z","updated_at":"2015-03-27T09:35:59Z","html_url":"https://github.com/ctram/myflix/pull/8#discussion_r27283678","pull_request_url":"https://api.github.com/repos/ctram/myflix/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/ctram/myflix/pulls/comments/27283678"},"html":{"href":"https://github.com/ctram/myflix/pull/8#discussion_r27283678"},"pull_request":{"href":"https://api.github.com/repos/ctram/myflix/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/ctram/myflix/pulls/8","id":32085962,"html_url":"https://github.com/ctram/myflix/pull/8","diff_url":"https://github.com/ctram/myflix/pull/8.diff","patch_url":"https://github.com/ctram/myflix/pull/8.patch","issue_url":"https://api.github.com/repos/ctram/myflix/issues/8","number":8,"state":"open","locked":false,"title":"Week 2","user":{"login":"ctram","id":9022574,"avatar_url":"https://avatars.githubusercontent.com/u/9022574?v=3","gravatar_id":"","url":"https://api.github.com/users/ctram","html_url":"https://github.com/ctram","followers_url":"https://api.github.com/users/ctram/followers","following_url":"https://api.github.com/users/ctram/following{/other_user}","gists_url":"https://api.github.com/users/ctram/gists{/gist_id}","starred_url":"https://api.github.com/users/ctram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctram/subscriptions","organizations_url":"https://api.github.com/users/ctram/orgs","repos_url":"https://api.github.com/users/ctram/repos","events_url":"https://api.github.com/users/ctram/events{/privacy}","received_events_url":"https://api.github.com/users/ctram/received_events","type":"User","site_admin":false},"body":"App now has:\r\n- movie queue\r\n- user can add movie's to queue\r\n- movie can only be added once to the queue.\r\n- user can delete a queue item, after which the queue will update and all queue items will have new positions on the queue.\r\n\r\nLive demo:  https://ct-myflix.herokuapp.com/\r\n\r\nemail: w@example.com\r\npassword: w\r\n\r\nI followed the solutions for the last two assignments, but added my own code to update the queue_item positions after a queue_item is removed -- assuming we are going to code that in the future anyway.","created_at":"2015-03-27T06:25:09Z","updated_at":"2015-03-27T09:35:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"19a511ff9e70db934c751398e681a4802d0c5415","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ctram/myflix/pulls/8/commits","review_comments_url":"https://api.github.com/repos/ctram/myflix/pulls/8/comments","review_comment_url":"https://api.github.com/repos/ctram/myflix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ctram/myflix/issues/8/comments","statuses_url":"https://api.github.com/repos/ctram/myflix/statuses/0e63b7a0a562f295dae878cfd8628d58aed8e6fd","head":{"label":"ctram:week-2","ref":"week-2","sha":"0e63b7a0a562f295dae878cfd8628d58aed8e6fd","user":{"login":"ctram","id":9022574,"avatar_url":"https://avatars.githubusercontent.com/u/9022574?v=3","gravatar_id":"","url":"https://api.github.com/users/ctram","html_url":"https://github.com/ctram","followers_url":"https://api.github.com/users/ctram/followers","following_url":"https://api.github.com/users/ctram/following{/other_user}","gists_url":"https://api.github.com/users/ctram/gists{/gist_id}","starred_url":"https://api.github.com/users/ctram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctram/subscriptions","organizations_url":"https://api.github.com/users/ctram/orgs","repos_url":"https://api.github.com/users/ctram/repos","events_url":"https://api.github.com/users/ctram/events{/privacy}","received_events_url":"https://api.github.com/users/ctram/received_events","type":"User","site_admin":false},"repo":{"id":31942088,"name":"myflix","full_name":"ctram/myflix","owner":{"login":"ctram","id":9022574,"avatar_url":"https://avatars.githubusercontent.com/u/9022574?v=3","gravatar_id":"","url":"https://api.github.com/users/ctram","html_url":"https://github.com/ctram","followers_url":"https://api.github.com/users/ctram/followers","following_url":"https://api.github.com/users/ctram/following{/other_user}","gists_url":"https://api.github.com/users/ctram/gists{/gist_id}","starred_url":"https://api.github.com/users/ctram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctram/subscriptions","organizations_url":"https://api.github.com/users/ctram/orgs","repos_url":"https://api.github.com/users/ctram/repos","events_url":"https://api.github.com/users/ctram/events{/privacy}","received_events_url":"https://api.github.com/users/ctram/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ctram/myflix","description":"","fork":false,"url":"https://api.github.com/repos/ctram/myflix","forks_url":"https://api.github.com/repos/ctram/myflix/forks","keys_url":"https://api.github.com/repos/ctram/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ctram/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ctram/myflix/teams","hooks_url":"https://api.github.com/repos/ctram/myflix/hooks","issue_events_url":"https://api.github.com/repos/ctram/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/ctram/myflix/events","assignees_url":"https://api.github.com/repos/ctram/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/ctram/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/ctram/myflix/tags","blobs_url":"https://api.github.com/repos/ctram/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ctram/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ctram/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/ctram/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ctram/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/ctram/myflix/languages","stargazers_url":"https://api.github.com/repos/ctram/myflix/stargazers","contributors_url":"https://api.github.com/repos/ctram/myflix/contributors","subscribers_url":"https://api.github.com/repos/ctram/myflix/subscribers","subscription_url":"https://api.github.com/repos/ctram/myflix/subscription","commits_url":"https://api.github.com/repos/ctram/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/ctram/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/ctram/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/ctram/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/ctram/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/ctram/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ctram/myflix/merges","archive_url":"https://api.github.com/repos/ctram/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ctram/myflix/downloads","issues_url":"https://api.github.com/repos/ctram/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/ctram/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/ctram/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/ctram/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ctram/myflix/labels{/name}","releases_url":"https://api.github.com/repos/ctram/myflix/releases{/id}","created_at":"2015-03-10T06:33:55Z","updated_at":"2015-03-25T23:41:45Z","pushed_at":"2015-03-27T07:07:57Z","git_url":"git://github.com/ctram/myflix.git","ssh_url":"git@github.com:ctram/myflix.git","clone_url":"https://github.com/ctram/myflix.git","svn_url":"https://github.com/ctram/myflix","homepage":null,"size":488,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ctram:master","ref":"master","sha":"14507616b3c51a4d1c8a7839406922d066ddf3f8","user":{"login":"ctram","id":9022574,"avatar_url":"https://avatars.githubusercontent.com/u/9022574?v=3","gravatar_id":"","url":"https://api.github.com/users/ctram","html_url":"https://github.com/ctram","followers_url":"https://api.github.com/users/ctram/followers","following_url":"https://api.github.com/users/ctram/following{/other_user}","gists_url":"https://api.github.com/users/ctram/gists{/gist_id}","starred_url":"https://api.github.com/users/ctram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctram/subscriptions","organizations_url":"https://api.github.com/users/ctram/orgs","repos_url":"https://api.github.com/users/ctram/repos","events_url":"https://api.github.com/users/ctram/events{/privacy}","received_events_url":"https://api.github.com/users/ctram/received_events","type":"User","site_admin":false},"repo":{"id":31942088,"name":"myflix","full_name":"ctram/myflix","owner":{"login":"ctram","id":9022574,"avatar_url":"https://avatars.githubusercontent.com/u/9022574?v=3","gravatar_id":"","url":"https://api.github.com/users/ctram","html_url":"https://github.com/ctram","followers_url":"https://api.github.com/users/ctram/followers","following_url":"https://api.github.com/users/ctram/following{/other_user}","gists_url":"https://api.github.com/users/ctram/gists{/gist_id}","starred_url":"https://api.github.com/users/ctram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctram/subscriptions","organizations_url":"https://api.github.com/users/ctram/orgs","repos_url":"https://api.github.com/users/ctram/repos","events_url":"https://api.github.com/users/ctram/events{/privacy}","received_events_url":"https://api.github.com/users/ctram/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ctram/myflix","description":"","fork":false,"url":"https://api.github.com/repos/ctram/myflix","forks_url":"https://api.github.com/repos/ctram/myflix/forks","keys_url":"https://api.github.com/repos/ctram/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ctram/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ctram/myflix/teams","hooks_url":"https://api.github.com/repos/ctram/myflix/hooks","issue_events_url":"https://api.github.com/repos/ctram/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/ctram/myflix/events","assignees_url":"https://api.github.com/repos/ctram/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/ctram/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/ctram/myflix/tags","blobs_url":"https://api.github.com/repos/ctram/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ctram/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ctram/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/ctram/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ctram/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/ctram/myflix/languages","stargazers_url":"https://api.github.com/repos/ctram/myflix/stargazers","contributors_url":"https://api.github.com/repos/ctram/myflix/contributors","subscribers_url":"https://api.github.com/repos/ctram/myflix/subscribers","subscription_url":"https://api.github.com/repos/ctram/myflix/subscription","commits_url":"https://api.github.com/repos/ctram/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/ctram/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/ctram/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/ctram/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/ctram/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/ctram/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ctram/myflix/merges","archive_url":"https://api.github.com/repos/ctram/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ctram/myflix/downloads","issues_url":"https://api.github.com/repos/ctram/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/ctram/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/ctram/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/ctram/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ctram/myflix/labels{/name}","releases_url":"https://api.github.com/repos/ctram/myflix/releases{/id}","created_at":"2015-03-10T06:33:55Z","updated_at":"2015-03-25T23:41:45Z","pushed_at":"2015-03-27T07:07:57Z","git_url":"git://github.com/ctram/myflix.git","ssh_url":"git@github.com:ctram/myflix.git","clone_url":"https://github.com/ctram/myflix.git","svn_url":"https://github.com/ctram/myflix","homepage":null,"size":488,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ctram/myflix/pulls/8"},"html":{"href":"https://github.com/ctram/myflix/pull/8"},"issue":{"href":"https://api.github.com/repos/ctram/myflix/issues/8"},"comments":{"href":"https://api.github.com/repos/ctram/myflix/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/ctram/myflix/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/ctram/myflix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ctram/myflix/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/ctram/myflix/statuses/0e63b7a0a562f295dae878cfd8628d58aed8e6fd"}}}}