{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_50/pulls/comments/34982192","id":34982192,"diff_hunk":"@@ -8,7 +8,11 @@\n         <li><%= link_to t(\".home\"), \"#\" %></li>\n         <li><%= link_to t(\".help\"), \"#\" %></li>\n         <% if logged_in? %>\n-          <li><%= link_to t(\".all_users\"), users_path %></li>\n+          <% if is_admin? %>\n+            <li><%= link_to t(\".all_users\"), admin_users_path %></li>\n+          <% else %>\n+            <li><%= link_to t(\".all_users\"), users_path %></li>\n+          <% end %>\n           <li class=\"dropdown\">\n             <%= link_to \"#\", class: \"dropdown-toggle\", \"data-toggle\" => \"dropdown\" do %>","path":"app/views/layouts/_header.html.erb","position":11,"original_position":11,"commit_id":"4fbbeb2fe53cfe2050f2133b57679d5b32eb3c66","original_commit_id":"1d36b9d7fab2adb33b42ea08992d5d014e5aa7ce","user":{"login":"biznezo","id":6303756,"avatar_url":"https://avatars.githubusercontent.com/u/6303756?v=3","gravatar_id":"","url":"https://api.github.com/users/biznezo","html_url":"https://github.com/biznezo","followers_url":"https://api.github.com/users/biznezo/followers","following_url":"https://api.github.com/users/biznezo/following{/other_user}","gists_url":"https://api.github.com/users/biznezo/gists{/gist_id}","starred_url":"https://api.github.com/users/biznezo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biznezo/subscriptions","organizations_url":"https://api.github.com/users/biznezo/orgs","repos_url":"https://api.github.com/users/biznezo/repos","events_url":"https://api.github.com/users/biznezo/events{/privacy}","received_events_url":"https://api.github.com/users/biznezo/received_events","type":"User","site_admin":false},"body":"data-toggle=\"dropdown\"\r\n","created_at":"2015-07-20T10:19:13Z","updated_at":"2015-07-20T10:19:13Z","html_url":"https://github.com/framgia/fels_50/pull/12#discussion_r34982192","pull_request_url":"https://api.github.com/repos/framgia/fels_50/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_50/pulls/comments/34982192"},"html":{"href":"https://github.com/framgia/fels_50/pull/12#discussion_r34982192"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_50/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_50/pulls/12","id":40326346,"html_url":"https://github.com/framgia/fels_50/pull/12","diff_url":"https://github.com/framgia/fels_50/pull/12.diff","patch_url":"https://github.com/framgia/fels_50/pull/12.patch","issue_url":"https://api.github.com/repos/framgia/fels_50/issues/12","number":12,"state":"open","locked":false,"title":"Finish delete user","user":{"login":"manhnhhedspi","id":9533356,"avatar_url":"https://avatars.githubusercontent.com/u/9533356?v=3","gravatar_id":"","url":"https://api.github.com/users/manhnhhedspi","html_url":"https://github.com/manhnhhedspi","followers_url":"https://api.github.com/users/manhnhhedspi/followers","following_url":"https://api.github.com/users/manhnhhedspi/following{/other_user}","gists_url":"https://api.github.com/users/manhnhhedspi/gists{/gist_id}","starred_url":"https://api.github.com/users/manhnhhedspi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manhnhhedspi/subscriptions","organizations_url":"https://api.github.com/users/manhnhhedspi/orgs","repos_url":"https://api.github.com/users/manhnhhedspi/repos","events_url":"https://api.github.com/users/manhnhhedspi/events{/privacy}","received_events_url":"https://api.github.com/users/manhnhhedspi/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-20T06:39:51Z","updated_at":"2015-07-20T10:19:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e54fd44378399825c5c6959c64751cb9bbdd2ec","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_50/pulls/12/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_50/pulls/12/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_50/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_50/issues/12/comments","statuses_url":"https://api.github.com/repos/framgia/fels_50/statuses/4fbbeb2fe53cfe2050f2133b57679d5b32eb3c66","head":{"label":"manhnhhedspi:34808_delete_user","ref":"34808_delete_user","sha":"4fbbeb2fe53cfe2050f2133b57679d5b32eb3c66","user":{"login":"manhnhhedspi","id":9533356,"avatar_url":"https://avatars.githubusercontent.com/u/9533356?v=3","gravatar_id":"","url":"https://api.github.com/users/manhnhhedspi","html_url":"https://github.com/manhnhhedspi","followers_url":"https://api.github.com/users/manhnhhedspi/followers","following_url":"https://api.github.com/users/manhnhhedspi/following{/other_user}","gists_url":"https://api.github.com/users/manhnhhedspi/gists{/gist_id}","starred_url":"https://api.github.com/users/manhnhhedspi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manhnhhedspi/subscriptions","organizations_url":"https://api.github.com/users/manhnhhedspi/orgs","repos_url":"https://api.github.com/users/manhnhhedspi/repos","events_url":"https://api.github.com/users/manhnhhedspi/events{/privacy}","received_events_url":"https://api.github.com/users/manhnhhedspi/received_events","type":"User","site_admin":false},"repo":{"id":39045417,"name":"fels_50","full_name":"manhnhhedspi/fels_50","owner":{"login":"manhnhhedspi","id":9533356,"avatar_url":"https://avatars.githubusercontent.com/u/9533356?v=3","gravatar_id":"","url":"https://api.github.com/users/manhnhhedspi","html_url":"https://github.com/manhnhhedspi","followers_url":"https://api.github.com/users/manhnhhedspi/followers","following_url":"https://api.github.com/users/manhnhhedspi/following{/other_user}","gists_url":"https://api.github.com/users/manhnhhedspi/gists{/gist_id}","starred_url":"https://api.github.com/users/manhnhhedspi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manhnhhedspi/subscriptions","organizations_url":"https://api.github.com/users/manhnhhedspi/orgs","repos_url":"https://api.github.com/users/manhnhhedspi/repos","events_url":"https://api.github.com/users/manhnhhedspi/events{/privacy}","received_events_url":"https://api.github.com/users/manhnhhedspi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/manhnhhedspi/fels_50","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/manhnhhedspi/fels_50","forks_url":"https://api.github.com/repos/manhnhhedspi/fels_50/forks","keys_url":"https://api.github.com/repos/manhnhhedspi/fels_50/keys{/key_id}","collaborators_url":"https://api.github.com/repos/manhnhhedspi/fels_50/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/manhnhhedspi/fels_50/teams","hooks_url":"https://api.github.com/repos/manhnhhedspi/fels_50/hooks","issue_events_url":"https://api.github.com/repos/manhnhhedspi/fels_50/issues/events{/number}","events_url":"https://api.github.com/repos/manhnhhedspi/fels_50/events","assignees_url":"https://api.github.com/repos/manhnhhedspi/fels_50/assignees{/user}","branches_url":"https://api.github.com/repos/manhnhhedspi/fels_50/branches{/branch}","tags_url":"https://api.github.com/repos/manhnhhedspi/fels_50/tags","blobs_url":"https://api.github.com/repos/manhnhhedspi/fels_50/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/manhnhhedspi/fels_50/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/manhnhhedspi/fels_50/git/refs{/sha}","trees_url":"https://api.github.com/repos/manhnhhedspi/fels_50/git/trees{/sha}","statuses_url":"https://api.github.com/repos/manhnhhedspi/fels_50/statuses/{sha}","languages_url":"https://api.github.com/repos/manhnhhedspi/fels_50/languages","stargazers_url":"https://api.github.com/repos/manhnhhedspi/fels_50/stargazers","contributors_url":"https://api.github.com/repos/manhnhhedspi/fels_50/contributors","subscribers_url":"https://api.github.com/repos/manhnhhedspi/fels_50/subscribers","subscription_url":"https://api.github.com/repos/manhnhhedspi/fels_50/subscription","commits_url":"https://api.github.com/repos/manhnhhedspi/fels_50/commits{/sha}","git_commits_url":"https://api.github.com/repos/manhnhhedspi/fels_50/git/commits{/sha}","comments_url":"https://api.github.com/repos/manhnhhedspi/fels_50/comments{/number}","issue_comment_url":"https://api.github.com/repos/manhnhhedspi/fels_50/issues/comments{/number}","contents_url":"https://api.github.com/repos/manhnhhedspi/fels_50/contents/{+path}","compare_url":"https://api.github.com/repos/manhnhhedspi/fels_50/compare/{base}...{head}","merges_url":"https://api.github.com/repos/manhnhhedspi/fels_50/merges","archive_url":"https://api.github.com/repos/manhnhhedspi/fels_50/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/manhnhhedspi/fels_50/downloads","issues_url":"https://api.github.com/repos/manhnhhedspi/fels_50/issues{/number}","pulls_url":"https://api.github.com/repos/manhnhhedspi/fels_50/pulls{/number}","milestones_url":"https://api.github.com/repos/manhnhhedspi/fels_50/milestones{/number}","notifications_url":"https://api.github.com/repos/manhnhhedspi/fels_50/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/manhnhhedspi/fels_50/labels{/name}","releases_url":"https://api.github.com/repos/manhnhhedspi/fels_50/releases{/id}","created_at":"2015-07-14T00:56:49Z","updated_at":"2015-02-04T11:30:16Z","pushed_at":"2015-07-20T10:16:16Z","git_url":"git://github.com/manhnhhedspi/fels_50.git","ssh_url":"git@github.com:manhnhhedspi/fels_50.git","clone_url":"https://github.com/manhnhhedspi/fels_50.git","svn_url":"https://github.com/manhnhhedspi/fels_50","homepage":null,"size":192,"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":"d48a5a4671430ce3e30c16ec9eda75838d06c25d","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":30295721,"name":"fels_50","full_name":"framgia/fels_50","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/fels_50","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_50","forks_url":"https://api.github.com/repos/framgia/fels_50/forks","keys_url":"https://api.github.com/repos/framgia/fels_50/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_50/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_50/teams","hooks_url":"https://api.github.com/repos/framgia/fels_50/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_50/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_50/events","assignees_url":"https://api.github.com/repos/framgia/fels_50/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_50/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_50/tags","blobs_url":"https://api.github.com/repos/framgia/fels_50/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_50/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_50/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_50/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_50/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_50/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_50/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_50/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_50/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_50/subscription","commits_url":"https://api.github.com/repos/framgia/fels_50/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_50/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_50/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_50/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_50/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_50/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_50/merges","archive_url":"https://api.github.com/repos/framgia/fels_50/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_50/downloads","issues_url":"https://api.github.com/repos/framgia/fels_50/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_50/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_50/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_50/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_50/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_50/releases{/id}","created_at":"2015-02-04T11:30:16Z","updated_at":"2015-02-04T11:30:16Z","pushed_at":"2015-07-20T10:16:17Z","git_url":"git://github.com/framgia/fels_50.git","ssh_url":"git@github.com:framgia/fels_50.git","clone_url":"https://github.com/framgia/fels_50.git","svn_url":"https://github.com/framgia/fels_50","homepage":null,"size":362,"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/fels_50/pulls/12"},"html":{"href":"https://github.com/framgia/fels_50/pull/12"},"issue":{"href":"https://api.github.com/repos/framgia/fels_50/issues/12"},"comments":{"href":"https://api.github.com/repos/framgia/fels_50/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_50/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_50/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_50/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_50/statuses/4fbbeb2fe53cfe2050f2133b57679d5b32eb3c66"}}}}