{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fdf_31/pulls/comments/112359695","pull_request_review_id":33668181,"id":112359695,"diff_hunk":"@@ -5,25 +5,41 @@\n       <ul class=\"nav navbar-nav navbar-right\">\n         <li><%= link_to t(\"header.home\"), root_path %></li>\n         <li><%= link_to t(\"header.products\"), \"#\" %></li>\n-          <li>\n-            <%= link_to \"#\", class: \"header-cart\" do %>\n-              <i class=\"svg-button-cart\"></i>\n-              <span class=\"cart-count\"></span>\n-            <% end %>\n-          </li>\n+        <% if logged_in? %>\n+          <li><%= link_to t(\"header.cart\"), root_path %></li>\n           <li class=\"dropdown\">\n-            <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\">\n-              <%= t(\"header.account\") %> <b class=\"caret\"></b>\n-            </a>\n+            <%= link_to \"#\", class: \"dropdown-toggle\",\n+              data: {toggle: \"dropdown\"} do %>\n+                <%= current_user.user_name %><b class=\"caret\"></b>","path":"app/views/layouts/_header.html.erb","position":18,"original_position":18,"commit_id":"f9b29bf3d711a34e77618c5383eb2397262e3aa0","original_commit_id":"9bdc9c40e16201fbd377061fd49cd327e30124df","user":{"login":"trankyquang","id":26705888,"avatar_url":"https://avatars1.githubusercontent.com/u/26705888?v=3","gravatar_id":"","url":"https://api.github.com/users/trankyquang","html_url":"https://github.com/trankyquang","followers_url":"https://api.github.com/users/trankyquang/followers","following_url":"https://api.github.com/users/trankyquang/following{/other_user}","gists_url":"https://api.github.com/users/trankyquang/gists{/gist_id}","starred_url":"https://api.github.com/users/trankyquang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trankyquang/subscriptions","organizations_url":"https://api.github.com/users/trankyquang/orgs","repos_url":"https://api.github.com/users/trankyquang/repos","events_url":"https://api.github.com/users/trankyquang/events{/privacy}","received_events_url":"https://api.github.com/users/trankyquang/received_events","type":"User","site_admin":false},"body":"Sorry. Chỗ này mình hiểu sai nên indent nó vào 2 space. Đã fix lại rồi nhé :)","created_at":"2017-04-20T03:39:14Z","updated_at":"2017-04-20T03:39:15Z","html_url":"https://github.com/framgia/fdf_31/pull/6#discussion_r112359695","pull_request_url":"https://api.github.com/repos/framgia/fdf_31/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_31/pulls/comments/112359695"},"html":{"href":"https://github.com/framgia/fdf_31/pull/6#discussion_r112359695"},"pull_request":{"href":"https://api.github.com/repos/framgia/fdf_31/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fdf_31/pulls/6","id":116551189,"html_url":"https://github.com/framgia/fdf_31/pull/6","diff_url":"https://github.com/framgia/fdf_31/pull/6.diff","patch_url":"https://github.com/framgia/fdf_31/pull/6.patch","issue_url":"https://api.github.com/repos/framgia/fdf_31/issues/6","number":6,"state":"open","locked":false,"title":"completed login-logout","user":{"login":"trankyquang","id":26705888,"avatar_url":"https://avatars1.githubusercontent.com/u/26705888?v=3","gravatar_id":"","url":"https://api.github.com/users/trankyquang","html_url":"https://github.com/trankyquang","followers_url":"https://api.github.com/users/trankyquang/followers","following_url":"https://api.github.com/users/trankyquang/following{/other_user}","gists_url":"https://api.github.com/users/trankyquang/gists{/gist_id}","starred_url":"https://api.github.com/users/trankyquang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trankyquang/subscriptions","organizations_url":"https://api.github.com/users/trankyquang/orgs","repos_url":"https://api.github.com/users/trankyquang/repos","events_url":"https://api.github.com/users/trankyquang/events{/privacy}","received_events_url":"https://api.github.com/users/trankyquang/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-04-19T13:43:29Z","updated_at":"2017-04-20T03:39:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e37c7ce124ec41f3a8e4266ebc51b0b4b34f5a8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fdf_31/pulls/6/commits","review_comments_url":"https://api.github.com/repos/framgia/fdf_31/pulls/6/comments","review_comment_url":"https://api.github.com/repos/framgia/fdf_31/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fdf_31/issues/6/comments","statuses_url":"https://api.github.com/repos/framgia/fdf_31/statuses/f9b29bf3d711a34e77618c5383eb2397262e3aa0","head":{"label":"trankyquang:113136-login-logout","ref":"113136-login-logout","sha":"f9b29bf3d711a34e77618c5383eb2397262e3aa0","user":{"login":"trankyquang","id":26705888,"avatar_url":"https://avatars1.githubusercontent.com/u/26705888?v=3","gravatar_id":"","url":"https://api.github.com/users/trankyquang","html_url":"https://github.com/trankyquang","followers_url":"https://api.github.com/users/trankyquang/followers","following_url":"https://api.github.com/users/trankyquang/following{/other_user}","gists_url":"https://api.github.com/users/trankyquang/gists{/gist_id}","starred_url":"https://api.github.com/users/trankyquang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trankyquang/subscriptions","organizations_url":"https://api.github.com/users/trankyquang/orgs","repos_url":"https://api.github.com/users/trankyquang/repos","events_url":"https://api.github.com/users/trankyquang/events{/privacy}","received_events_url":"https://api.github.com/users/trankyquang/received_events","type":"User","site_admin":false},"repo":{"id":88566899,"name":"fdf_31","full_name":"trankyquang/fdf_31","owner":{"login":"trankyquang","id":26705888,"avatar_url":"https://avatars1.githubusercontent.com/u/26705888?v=3","gravatar_id":"","url":"https://api.github.com/users/trankyquang","html_url":"https://github.com/trankyquang","followers_url":"https://api.github.com/users/trankyquang/followers","following_url":"https://api.github.com/users/trankyquang/following{/other_user}","gists_url":"https://api.github.com/users/trankyquang/gists{/gist_id}","starred_url":"https://api.github.com/users/trankyquang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trankyquang/subscriptions","organizations_url":"https://api.github.com/users/trankyquang/orgs","repos_url":"https://api.github.com/users/trankyquang/repos","events_url":"https://api.github.com/users/trankyquang/events{/privacy}","received_events_url":"https://api.github.com/users/trankyquang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trankyquang/fdf_31","description":null,"fork":true,"url":"https://api.github.com/repos/trankyquang/fdf_31","forks_url":"https://api.github.com/repos/trankyquang/fdf_31/forks","keys_url":"https://api.github.com/repos/trankyquang/fdf_31/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trankyquang/fdf_31/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trankyquang/fdf_31/teams","hooks_url":"https://api.github.com/repos/trankyquang/fdf_31/hooks","issue_events_url":"https://api.github.com/repos/trankyquang/fdf_31/issues/events{/number}","events_url":"https://api.github.com/repos/trankyquang/fdf_31/events","assignees_url":"https://api.github.com/repos/trankyquang/fdf_31/assignees{/user}","branches_url":"https://api.github.com/repos/trankyquang/fdf_31/branches{/branch}","tags_url":"https://api.github.com/repos/trankyquang/fdf_31/tags","blobs_url":"https://api.github.com/repos/trankyquang/fdf_31/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trankyquang/fdf_31/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trankyquang/fdf_31/git/refs{/sha}","trees_url":"https://api.github.com/repos/trankyquang/fdf_31/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trankyquang/fdf_31/statuses/{sha}","languages_url":"https://api.github.com/repos/trankyquang/fdf_31/languages","stargazers_url":"https://api.github.com/repos/trankyquang/fdf_31/stargazers","contributors_url":"https://api.github.com/repos/trankyquang/fdf_31/contributors","subscribers_url":"https://api.github.com/repos/trankyquang/fdf_31/subscribers","subscription_url":"https://api.github.com/repos/trankyquang/fdf_31/subscription","commits_url":"https://api.github.com/repos/trankyquang/fdf_31/commits{/sha}","git_commits_url":"https://api.github.com/repos/trankyquang/fdf_31/git/commits{/sha}","comments_url":"https://api.github.com/repos/trankyquang/fdf_31/comments{/number}","issue_comment_url":"https://api.github.com/repos/trankyquang/fdf_31/issues/comments{/number}","contents_url":"https://api.github.com/repos/trankyquang/fdf_31/contents/{+path}","compare_url":"https://api.github.com/repos/trankyquang/fdf_31/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trankyquang/fdf_31/merges","archive_url":"https://api.github.com/repos/trankyquang/fdf_31/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trankyquang/fdf_31/downloads","issues_url":"https://api.github.com/repos/trankyquang/fdf_31/issues{/number}","pulls_url":"https://api.github.com/repos/trankyquang/fdf_31/pulls{/number}","milestones_url":"https://api.github.com/repos/trankyquang/fdf_31/milestones{/number}","notifications_url":"https://api.github.com/repos/trankyquang/fdf_31/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trankyquang/fdf_31/labels{/name}","releases_url":"https://api.github.com/repos/trankyquang/fdf_31/releases{/id}","deployments_url":"https://api.github.com/repos/trankyquang/fdf_31/deployments","created_at":"2017-04-18T01:22:16Z","updated_at":"2017-04-14T09:25:50Z","pushed_at":"2017-04-20T03:08:37Z","git_url":"git://github.com/trankyquang/fdf_31.git","ssh_url":"git@github.com:trankyquang/fdf_31.git","clone_url":"https://github.com/trankyquang/fdf_31.git","svn_url":"https://github.com/trankyquang/fdf_31","homepage":null,"size":44,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"framgia:develop","ref":"develop","sha":"0c32a327e8ce3910ca09875f89a79e9ca67d978f","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars0.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":88253831,"name":"fdf_31","full_name":"framgia/fdf_31","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars0.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_31","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/fdf_31","forks_url":"https://api.github.com/repos/framgia/fdf_31/forks","keys_url":"https://api.github.com/repos/framgia/fdf_31/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fdf_31/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fdf_31/teams","hooks_url":"https://api.github.com/repos/framgia/fdf_31/hooks","issue_events_url":"https://api.github.com/repos/framgia/fdf_31/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fdf_31/events","assignees_url":"https://api.github.com/repos/framgia/fdf_31/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fdf_31/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fdf_31/tags","blobs_url":"https://api.github.com/repos/framgia/fdf_31/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fdf_31/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fdf_31/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fdf_31/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fdf_31/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fdf_31/languages","stargazers_url":"https://api.github.com/repos/framgia/fdf_31/stargazers","contributors_url":"https://api.github.com/repos/framgia/fdf_31/contributors","subscribers_url":"https://api.github.com/repos/framgia/fdf_31/subscribers","subscription_url":"https://api.github.com/repos/framgia/fdf_31/subscription","commits_url":"https://api.github.com/repos/framgia/fdf_31/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fdf_31/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fdf_31/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fdf_31/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fdf_31/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fdf_31/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fdf_31/merges","archive_url":"https://api.github.com/repos/framgia/fdf_31/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fdf_31/downloads","issues_url":"https://api.github.com/repos/framgia/fdf_31/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fdf_31/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fdf_31/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fdf_31/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fdf_31/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fdf_31/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fdf_31/deployments","created_at":"2017-04-14T09:25:50Z","updated_at":"2017-04-18T02:23:53Z","pushed_at":"2017-04-20T03:08:38Z","git_url":"git://github.com/framgia/fdf_31.git","ssh_url":"git@github.com:framgia/fdf_31.git","clone_url":"https://github.com/framgia/fdf_31.git","svn_url":"https://github.com/framgia/fdf_31","homepage":null,"size":38,"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":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_31/pulls/6"},"html":{"href":"https://github.com/framgia/fdf_31/pull/6"},"issue":{"href":"https://api.github.com/repos/framgia/fdf_31/issues/6"},"comments":{"href":"https://api.github.com/repos/framgia/fdf_31/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fdf_31/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fdf_31/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fdf_31/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fdf_31/statuses/f9b29bf3d711a34e77618c5383eb2397262e3aa0"}}}}
{"actor":{"display_login":"trankyquang"}}