{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fdf_1/pulls/comments/64342573","id":64342573,"diff_hunk":"@@ -0,0 +1,29 @@\n+<div class=\"well\">\n+  <div class=\"row\">\n+    <div class=\"col-xs-8\">\n+      <h4><%= product.name %></h4>\n+      <div class=\"col-md-3\">\n+        <%= image_tag product.image.thumb.url, class: \"img-rounded\" %>\n+      </div>\n+    </div>\n+    <div class=\"col-xs-4\">\n+      <%= form_for line_item, remote: true do |f| %>\n+        <h4 class=\"text-right\">Unit Price: <span style=\"color: green\"><%= number_to_currency line_item.unit_price %></span></h4>\n+        <div class=\"row\">\n+          <div class=\"col-xs-4\">\n+            <%= f.number_field :quantity, value: line_item.quantity.to_i, class: \"form-control\", min: 1 %>\n+            <%= f.hidden_field :product_id, value: product.id %>\n+          </div>\n+          <div class=\"col-xs-8 text-right\">\n+            <div class=\"btn-group\">\n+              <%= f.submit \"Update Quantity\", class: \"btn btn-primary\" %>\n+              <%= link_to \"Delete\", line_item, { data: { confirm: \"Are you sure you wish to delete the product '#{line_item.product.name}' from your cart?\" }, method: :delete, remote: true, class: \"btn btn-danger\" } %>\n+            </div>\n+          </div>\n+        </div>\n+        <h4 class=\"text-right\">Total Price: <span style=\"color: green\"><%= number_to_currency line_item.total_price %></span></h4>","path":"app/views/orders/_order_row.html.erb","position":24,"original_position":24,"commit_id":"6f91521065466e21c69567081266252921c27efd","original_commit_id":"6f91521065466e21c69567081266252921c27efd","user":{"login":"nminhduc","id":18206570,"avatar_url":"https://avatars.githubusercontent.com/u/18206570?v=3","gravatar_id":"","url":"https://api.github.com/users/nminhduc","html_url":"https://github.com/nminhduc","followers_url":"https://api.github.com/users/nminhduc/followers","following_url":"https://api.github.com/users/nminhduc/following{/other_user}","gists_url":"https://api.github.com/users/nminhduc/gists{/gist_id}","starred_url":"https://api.github.com/users/nminhduc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nminhduc/subscriptions","organizations_url":"https://api.github.com/users/nminhduc/orgs","repos_url":"https://api.github.com/users/nminhduc/repos","events_url":"https://api.github.com/users/nminhduc/events{/privacy}","received_events_url":"https://api.github.com/users/nminhduc/received_events","type":"User","site_admin":false},"body":"Xuống dòng","created_at":"2016-05-24T07:42:34Z","updated_at":"2016-05-24T07:42:34Z","html_url":"https://github.com/framgia/fdf_1/pull/17#discussion_r64342573","pull_request_url":"https://api.github.com/repos/framgia/fdf_1/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_1/pulls/comments/64342573"},"html":{"href":"https://github.com/framgia/fdf_1/pull/17#discussion_r64342573"},"pull_request":{"href":"https://api.github.com/repos/framgia/fdf_1/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fdf_1/pulls/17","id":71169880,"html_url":"https://github.com/framgia/fdf_1/pull/17","diff_url":"https://github.com/framgia/fdf_1/pull/17.diff","patch_url":"https://github.com/framgia/fdf_1/pull/17.patch","issue_url":"https://api.github.com/repos/framgia/fdf_1/issues/17","number":17,"state":"open","locked":false,"title":"Shopping Cart","user":{"login":"thanhtt","id":18318299,"avatar_url":"https://avatars.githubusercontent.com/u/18318299?v=3","gravatar_id":"","url":"https://api.github.com/users/thanhtt","html_url":"https://github.com/thanhtt","followers_url":"https://api.github.com/users/thanhtt/followers","following_url":"https://api.github.com/users/thanhtt/following{/other_user}","gists_url":"https://api.github.com/users/thanhtt/gists{/gist_id}","starred_url":"https://api.github.com/users/thanhtt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanhtt/subscriptions","organizations_url":"https://api.github.com/users/thanhtt/orgs","repos_url":"https://api.github.com/users/thanhtt/repos","events_url":"https://api.github.com/users/thanhtt/events{/privacy}","received_events_url":"https://api.github.com/users/thanhtt/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-24T07:27:53Z","updated_at":"2016-05-24T07:42:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"95a9753337ac1940994c89b17c006941856ffba0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fdf_1/pulls/17/commits","review_comments_url":"https://api.github.com/repos/framgia/fdf_1/pulls/17/comments","review_comment_url":"https://api.github.com/repos/framgia/fdf_1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fdf_1/issues/17/comments","statuses_url":"https://api.github.com/repos/framgia/fdf_1/statuses/6f91521065466e21c69567081266252921c27efd","head":{"label":"thanhtt:shopping_cart","ref":"shopping_cart","sha":"6f91521065466e21c69567081266252921c27efd","user":{"login":"thanhtt","id":18318299,"avatar_url":"https://avatars.githubusercontent.com/u/18318299?v=3","gravatar_id":"","url":"https://api.github.com/users/thanhtt","html_url":"https://github.com/thanhtt","followers_url":"https://api.github.com/users/thanhtt/followers","following_url":"https://api.github.com/users/thanhtt/following{/other_user}","gists_url":"https://api.github.com/users/thanhtt/gists{/gist_id}","starred_url":"https://api.github.com/users/thanhtt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanhtt/subscriptions","organizations_url":"https://api.github.com/users/thanhtt/orgs","repos_url":"https://api.github.com/users/thanhtt/repos","events_url":"https://api.github.com/users/thanhtt/events{/privacy}","received_events_url":"https://api.github.com/users/thanhtt/received_events","type":"User","site_admin":false},"repo":{"id":59085970,"name":"fdf_1","full_name":"thanhtt/fdf_1","owner":{"login":"thanhtt","id":18318299,"avatar_url":"https://avatars.githubusercontent.com/u/18318299?v=3","gravatar_id":"","url":"https://api.github.com/users/thanhtt","html_url":"https://github.com/thanhtt","followers_url":"https://api.github.com/users/thanhtt/followers","following_url":"https://api.github.com/users/thanhtt/following{/other_user}","gists_url":"https://api.github.com/users/thanhtt/gists{/gist_id}","starred_url":"https://api.github.com/users/thanhtt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanhtt/subscriptions","organizations_url":"https://api.github.com/users/thanhtt/orgs","repos_url":"https://api.github.com/users/thanhtt/repos","events_url":"https://api.github.com/users/thanhtt/events{/privacy}","received_events_url":"https://api.github.com/users/thanhtt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thanhtt/fdf_1","description":"Foods & Drinks (training)","fork":true,"url":"https://api.github.com/repos/thanhtt/fdf_1","forks_url":"https://api.github.com/repos/thanhtt/fdf_1/forks","keys_url":"https://api.github.com/repos/thanhtt/fdf_1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thanhtt/fdf_1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thanhtt/fdf_1/teams","hooks_url":"https://api.github.com/repos/thanhtt/fdf_1/hooks","issue_events_url":"https://api.github.com/repos/thanhtt/fdf_1/issues/events{/number}","events_url":"https://api.github.com/repos/thanhtt/fdf_1/events","assignees_url":"https://api.github.com/repos/thanhtt/fdf_1/assignees{/user}","branches_url":"https://api.github.com/repos/thanhtt/fdf_1/branches{/branch}","tags_url":"https://api.github.com/repos/thanhtt/fdf_1/tags","blobs_url":"https://api.github.com/repos/thanhtt/fdf_1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thanhtt/fdf_1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thanhtt/fdf_1/git/refs{/sha}","trees_url":"https://api.github.com/repos/thanhtt/fdf_1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thanhtt/fdf_1/statuses/{sha}","languages_url":"https://api.github.com/repos/thanhtt/fdf_1/languages","stargazers_url":"https://api.github.com/repos/thanhtt/fdf_1/stargazers","contributors_url":"https://api.github.com/repos/thanhtt/fdf_1/contributors","subscribers_url":"https://api.github.com/repos/thanhtt/fdf_1/subscribers","subscription_url":"https://api.github.com/repos/thanhtt/fdf_1/subscription","commits_url":"https://api.github.com/repos/thanhtt/fdf_1/commits{/sha}","git_commits_url":"https://api.github.com/repos/thanhtt/fdf_1/git/commits{/sha}","comments_url":"https://api.github.com/repos/thanhtt/fdf_1/comments{/number}","issue_comment_url":"https://api.github.com/repos/thanhtt/fdf_1/issues/comments{/number}","contents_url":"https://api.github.com/repos/thanhtt/fdf_1/contents/{+path}","compare_url":"https://api.github.com/repos/thanhtt/fdf_1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thanhtt/fdf_1/merges","archive_url":"https://api.github.com/repos/thanhtt/fdf_1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thanhtt/fdf_1/downloads","issues_url":"https://api.github.com/repos/thanhtt/fdf_1/issues{/number}","pulls_url":"https://api.github.com/repos/thanhtt/fdf_1/pulls{/number}","milestones_url":"https://api.github.com/repos/thanhtt/fdf_1/milestones{/number}","notifications_url":"https://api.github.com/repos/thanhtt/fdf_1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thanhtt/fdf_1/labels{/name}","releases_url":"https://api.github.com/repos/thanhtt/fdf_1/releases{/id}","deployments_url":"https://api.github.com/repos/thanhtt/fdf_1/deployments","created_at":"2016-05-18T05:52:42Z","updated_at":"2016-05-18T01:48:07Z","pushed_at":"2016-05-24T07:35:14Z","git_url":"git://github.com/thanhtt/fdf_1.git","ssh_url":"git@github.com:thanhtt/fdf_1.git","clone_url":"https://github.com/thanhtt/fdf_1.git","svn_url":"https://github.com/thanhtt/fdf_1","homepage":null,"size":85,"stargazers_count":0,"watchers_count":0,"language":null,"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":"framgia:develop","ref":"develop","sha":"6a1363860c06d3c2dd81d75fa2dd549fc4838fb4","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":59072736,"name":"fdf_1","full_name":"framgia/fdf_1","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fdf_1","description":"Foods & Drinks (training)","fork":false,"url":"https://api.github.com/repos/framgia/fdf_1","forks_url":"https://api.github.com/repos/framgia/fdf_1/forks","keys_url":"https://api.github.com/repos/framgia/fdf_1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fdf_1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fdf_1/teams","hooks_url":"https://api.github.com/repos/framgia/fdf_1/hooks","issue_events_url":"https://api.github.com/repos/framgia/fdf_1/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fdf_1/events","assignees_url":"https://api.github.com/repos/framgia/fdf_1/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fdf_1/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fdf_1/tags","blobs_url":"https://api.github.com/repos/framgia/fdf_1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fdf_1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fdf_1/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fdf_1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fdf_1/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fdf_1/languages","stargazers_url":"https://api.github.com/repos/framgia/fdf_1/stargazers","contributors_url":"https://api.github.com/repos/framgia/fdf_1/contributors","subscribers_url":"https://api.github.com/repos/framgia/fdf_1/subscribers","subscription_url":"https://api.github.com/repos/framgia/fdf_1/subscription","commits_url":"https://api.github.com/repos/framgia/fdf_1/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fdf_1/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fdf_1/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fdf_1/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fdf_1/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fdf_1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fdf_1/merges","archive_url":"https://api.github.com/repos/framgia/fdf_1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fdf_1/downloads","issues_url":"https://api.github.com/repos/framgia/fdf_1/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fdf_1/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fdf_1/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fdf_1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fdf_1/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fdf_1/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fdf_1/deployments","created_at":"2016-05-18T01:47:47Z","updated_at":"2016-05-18T01:48:07Z","pushed_at":"2016-05-24T07:35:15Z","git_url":"git://github.com/framgia/fdf_1.git","ssh_url":"git@github.com:framgia/fdf_1.git","clone_url":"https://github.com/framgia/fdf_1.git","svn_url":"https://github.com/framgia/fdf_1","homepage":null,"size":81,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_1/pulls/17"},"html":{"href":"https://github.com/framgia/fdf_1/pull/17"},"issue":{"href":"https://api.github.com/repos/framgia/fdf_1/issues/17"},"comments":{"href":"https://api.github.com/repos/framgia/fdf_1/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fdf_1/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fdf_1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fdf_1/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fdf_1/statuses/6f91521065466e21c69567081266252921c27efd"}}}}
{"actor":{"display_login":"nminhduc"}}