{"action":"created","comment":{"url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/pulls/comments/218812746","pull_request_review_id":156830220,"id":218812746,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODgxMjc0Ng==","diff_hunk":"@@ -0,0 +1,54 @@\n+<div class=\"container\">\n+  <div class=\"row mt-5\">\n+    <h3 class=\"col-md-6\">\n+      <%= t \".promotions\" %>\n+    </h3>\n+    <div class=\"col-md-6 text-right\">\n+      <%= link_to t(\".new_promotion\"), new_admin_promotion_path,\n+        class: \"btn btn-success\" %>\n+    </div>\n+  </div>\n+  <hr>\n+  <table class=\"table table-hover table-bordered\">\n+    <thead>\n+      <tr>\n+        <th><%= t \".promotion\" %></th>\n+        <th><%= t \".description\" %></th>\n+        <th><%= t \".products\" %></th>\n+        <th><%= t \".start_date\" %></th>\n+        <th><%= t \".end_date\" %></th>\n+        <th><em class=\"fa fa-cog\"></em></th>\n+      </tr>\n+    </thead>\n+    <tbody>\n+      <% @promotions.each do |promotion| %>\n+        <tr>\n+          <td><%= promotion.id %></td>\n+          <td>\n+            <%= promotion.content %><br>\n+            <%= t \".sale_percent\" %>: <%= promotion.percent %>%\n+          </td>\n+          <td>\n+            <% promotion.promotion_details.each do |pd|%>","path":"app/views/admin/promotions/index.html.erb","position":32,"original_position":32,"commit_id":"aba4dd8c9fff6da4aebb5e8e04dcc45ab7244413","original_commit_id":"aba4dd8c9fff6da4aebb5e8e04dcc45ab7244413","user":{"login":"huongnguyenmta","id":18224922,"node_id":"MDQ6VXNlcjE4MjI0OTIy","avatar_url":"https://avatars3.githubusercontent.com/u/18224922?v=4","gravatar_id":"","url":"https://api.github.com/users/huongnguyenmta","html_url":"https://github.com/huongnguyenmta","followers_url":"https://api.github.com/users/huongnguyenmta/followers","following_url":"https://api.github.com/users/huongnguyenmta/following{/other_user}","gists_url":"https://api.github.com/users/huongnguyenmta/gists{/gist_id}","starred_url":"https://api.github.com/users/huongnguyenmta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huongnguyenmta/subscriptions","organizations_url":"https://api.github.com/users/huongnguyenmta/orgs","repos_url":"https://api.github.com/users/huongnguyenmta/repos","events_url":"https://api.github.com/users/huongnguyenmta/events{/privacy}","received_events_url":"https://api.github.com/users/huongnguyenmta/received_events","type":"User","site_admin":false},"body":"chỗ này lặp rồi lấy ra giá trị từng field nhé\r\n","created_at":"2018-09-19T13:54:55Z","updated_at":"2018-09-19T13:55:28Z","html_url":"https://github.com/awesome-academy/pr21801-e-commerce_01/pull/37#discussion_r218812746","pull_request_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/pulls/37","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/pulls/comments/218812746"},"html":{"href":"https://github.com/awesome-academy/pr21801-e-commerce_01/pull/37#discussion_r218812746"},"pull_request":{"href":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/pulls/37","id":216644774,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2NjQ0Nzc0","html_url":"https://github.com/awesome-academy/pr21801-e-commerce_01/pull/37","diff_url":"https://github.com/awesome-academy/pr21801-e-commerce_01/pull/37.diff","patch_url":"https://github.com/awesome-academy/pr21801-e-commerce_01/pull/37.patch","issue_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/issues/37","number":37,"state":"open","locked":false,"title":"ref Task#7 add promotion","user":{"login":"shjn0","id":37621547,"node_id":"MDQ6VXNlcjM3NjIxNTQ3","avatar_url":"https://avatars1.githubusercontent.com/u/37621547?v=4","gravatar_id":"","url":"https://api.github.com/users/shjn0","html_url":"https://github.com/shjn0","followers_url":"https://api.github.com/users/shjn0/followers","following_url":"https://api.github.com/users/shjn0/following{/other_user}","gists_url":"https://api.github.com/users/shjn0/gists{/gist_id}","starred_url":"https://api.github.com/users/shjn0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shjn0/subscriptions","organizations_url":"https://api.github.com/users/shjn0/orgs","repos_url":"https://api.github.com/users/shjn0/repos","events_url":"https://api.github.com/users/shjn0/events{/privacy}","received_events_url":"https://api.github.com/users/shjn0/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-19T13:43:41Z","updated_at":"2018-09-19T13:55:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"22293028610438165b776bc28b673f1a9cbd51e4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/pulls/37/commits","review_comments_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/pulls/37/comments","review_comment_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/pulls/comments{/number}","comments_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/issues/37/comments","statuses_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/statuses/aba4dd8c9fff6da4aebb5e8e04dcc45ab7244413","head":{"label":"shjn0:add_promotion","ref":"add_promotion","sha":"aba4dd8c9fff6da4aebb5e8e04dcc45ab7244413","user":{"login":"shjn0","id":37621547,"node_id":"MDQ6VXNlcjM3NjIxNTQ3","avatar_url":"https://avatars1.githubusercontent.com/u/37621547?v=4","gravatar_id":"","url":"https://api.github.com/users/shjn0","html_url":"https://github.com/shjn0","followers_url":"https://api.github.com/users/shjn0/followers","following_url":"https://api.github.com/users/shjn0/following{/other_user}","gists_url":"https://api.github.com/users/shjn0/gists{/gist_id}","starred_url":"https://api.github.com/users/shjn0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shjn0/subscriptions","organizations_url":"https://api.github.com/users/shjn0/orgs","repos_url":"https://api.github.com/users/shjn0/repos","events_url":"https://api.github.com/users/shjn0/events{/privacy}","received_events_url":"https://api.github.com/users/shjn0/received_events","type":"User","site_admin":false},"repo":{"id":143729945,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM3Mjk5NDU=","name":"e-commerce_01","full_name":"shjn0/e-commerce_01","private":false,"owner":{"login":"shjn0","id":37621547,"node_id":"MDQ6VXNlcjM3NjIxNTQ3","avatar_url":"https://avatars1.githubusercontent.com/u/37621547?v=4","gravatar_id":"","url":"https://api.github.com/users/shjn0","html_url":"https://github.com/shjn0","followers_url":"https://api.github.com/users/shjn0/followers","following_url":"https://api.github.com/users/shjn0/following{/other_user}","gists_url":"https://api.github.com/users/shjn0/gists{/gist_id}","starred_url":"https://api.github.com/users/shjn0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shjn0/subscriptions","organizations_url":"https://api.github.com/users/shjn0/orgs","repos_url":"https://api.github.com/users/shjn0/repos","events_url":"https://api.github.com/users/shjn0/events{/privacy}","received_events_url":"https://api.github.com/users/shjn0/received_events","type":"User","site_admin":false},"html_url":"https://github.com/shjn0/e-commerce_01","description":"E-commerce about mobile shop","fork":true,"url":"https://api.github.com/repos/shjn0/e-commerce_01","forks_url":"https://api.github.com/repos/shjn0/e-commerce_01/forks","keys_url":"https://api.github.com/repos/shjn0/e-commerce_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shjn0/e-commerce_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shjn0/e-commerce_01/teams","hooks_url":"https://api.github.com/repos/shjn0/e-commerce_01/hooks","issue_events_url":"https://api.github.com/repos/shjn0/e-commerce_01/issues/events{/number}","events_url":"https://api.github.com/repos/shjn0/e-commerce_01/events","assignees_url":"https://api.github.com/repos/shjn0/e-commerce_01/assignees{/user}","branches_url":"https://api.github.com/repos/shjn0/e-commerce_01/branches{/branch}","tags_url":"https://api.github.com/repos/shjn0/e-commerce_01/tags","blobs_url":"https://api.github.com/repos/shjn0/e-commerce_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shjn0/e-commerce_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shjn0/e-commerce_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/shjn0/e-commerce_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shjn0/e-commerce_01/statuses/{sha}","languages_url":"https://api.github.com/repos/shjn0/e-commerce_01/languages","stargazers_url":"https://api.github.com/repos/shjn0/e-commerce_01/stargazers","contributors_url":"https://api.github.com/repos/shjn0/e-commerce_01/contributors","subscribers_url":"https://api.github.com/repos/shjn0/e-commerce_01/subscribers","subscription_url":"https://api.github.com/repos/shjn0/e-commerce_01/subscription","commits_url":"https://api.github.com/repos/shjn0/e-commerce_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/shjn0/e-commerce_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/shjn0/e-commerce_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/shjn0/e-commerce_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/shjn0/e-commerce_01/contents/{+path}","compare_url":"https://api.github.com/repos/shjn0/e-commerce_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shjn0/e-commerce_01/merges","archive_url":"https://api.github.com/repos/shjn0/e-commerce_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shjn0/e-commerce_01/downloads","issues_url":"https://api.github.com/repos/shjn0/e-commerce_01/issues{/number}","pulls_url":"https://api.github.com/repos/shjn0/e-commerce_01/pulls{/number}","milestones_url":"https://api.github.com/repos/shjn0/e-commerce_01/milestones{/number}","notifications_url":"https://api.github.com/repos/shjn0/e-commerce_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shjn0/e-commerce_01/labels{/name}","releases_url":"https://api.github.com/repos/shjn0/e-commerce_01/releases{/id}","deployments_url":"https://api.github.com/repos/shjn0/e-commerce_01/deployments","created_at":"2018-08-06T13:07:15Z","updated_at":"2018-08-06T13:07:17Z","pushed_at":"2018-09-19T13:46:26Z","git_url":"git://github.com/shjn0/e-commerce_01.git","ssh_url":"git@github.com:shjn0/e-commerce_01.git","clone_url":"https://github.com/shjn0/e-commerce_01.git","svn_url":"https://github.com/shjn0/e-commerce_01","homepage":null,"size":3117,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"awesome-academy:master","ref":"master","sha":"70a72b2c855e30ea99d56416752ba6f05ce45eaa","user":{"login":"awesome-academy","id":33895223,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODk1MjIz","avatar_url":"https://avatars0.githubusercontent.com/u/33895223?v=4","gravatar_id":"","url":"https://api.github.com/users/awesome-academy","html_url":"https://github.com/awesome-academy","followers_url":"https://api.github.com/users/awesome-academy/followers","following_url":"https://api.github.com/users/awesome-academy/following{/other_user}","gists_url":"https://api.github.com/users/awesome-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/awesome-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesome-academy/subscriptions","organizations_url":"https://api.github.com/users/awesome-academy/orgs","repos_url":"https://api.github.com/users/awesome-academy/repos","events_url":"https://api.github.com/users/awesome-academy/events{/privacy}","received_events_url":"https://api.github.com/users/awesome-academy/received_events","type":"Organization","site_admin":false},"repo":{"id":143725202,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM3MjUyMDI=","name":"pr21801-e-commerce_01","full_name":"awesome-academy/pr21801-e-commerce_01","private":false,"owner":{"login":"awesome-academy","id":33895223,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODk1MjIz","avatar_url":"https://avatars0.githubusercontent.com/u/33895223?v=4","gravatar_id":"","url":"https://api.github.com/users/awesome-academy","html_url":"https://github.com/awesome-academy","followers_url":"https://api.github.com/users/awesome-academy/followers","following_url":"https://api.github.com/users/awesome-academy/following{/other_user}","gists_url":"https://api.github.com/users/awesome-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/awesome-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesome-academy/subscriptions","organizations_url":"https://api.github.com/users/awesome-academy/orgs","repos_url":"https://api.github.com/users/awesome-academy/repos","events_url":"https://api.github.com/users/awesome-academy/events{/privacy}","received_events_url":"https://api.github.com/users/awesome-academy/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/awesome-academy/pr21801-e-commerce_01","description":"E-commerce about mobile shop","fork":false,"url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01","forks_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/forks","keys_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/teams","hooks_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/hooks","issue_events_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/issues/events{/number}","events_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/events","assignees_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/assignees{/user}","branches_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/branches{/branch}","tags_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/tags","blobs_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/statuses/{sha}","languages_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/languages","stargazers_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/stargazers","contributors_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/contributors","subscribers_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/subscribers","subscription_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/subscription","commits_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/contents/{+path}","compare_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/merges","archive_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/downloads","issues_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/issues{/number}","pulls_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/pulls{/number}","milestones_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/milestones{/number}","notifications_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/labels{/name}","releases_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/releases{/id}","deployments_url":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/deployments","created_at":"2018-08-06T12:25:57Z","updated_at":"2018-09-19T13:05:16Z","pushed_at":"2018-09-19T13:46:27Z","git_url":"git://github.com/awesome-academy/pr21801-e-commerce_01.git","ssh_url":"git@github.com:awesome-academy/pr21801-e-commerce_01.git","clone_url":"https://github.com/awesome-academy/pr21801-e-commerce_01.git","svn_url":"https://github.com/awesome-academy/pr21801-e-commerce_01","homepage":null,"size":3116,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/pulls/37"},"html":{"href":"https://github.com/awesome-academy/pr21801-e-commerce_01/pull/37"},"issue":{"href":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/issues/37"},"comments":{"href":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/awesome-academy/pr21801-e-commerce_01/statuses/aba4dd8c9fff6da4aebb5e8e04dcc45ab7244413"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"huongnguyenmta"}}