{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_161/pulls/comments/70384963","id":70384963,"diff_hunk":"@@ -5,7 +5,11 @@\n       <ul class=\"nav navbar-nav navbar-right\">\n         <li><%= link_to t(\"home\"), root_path %></li>\n         <% if logged_in? %>\n-          <li><%= link_to t(\"users\"), users_path %></li>\n+          <% if current_user.is_admin? %>\n+            <li><%= link_to t(\"users\"), admin_users_path %></li>\n+          <% else %>\n+            <li><%= link_to t(\"users\"), users_path %></li>\n+          <% end %>","path":"app/views/layouts/_header.html.erb","position":9,"original_position":9,"commit_id":"f70bcded48fba7109cbcd030795764210cabae4b","original_commit_id":"f70bcded48fba7109cbcd030795764210cabae4b","user":{"login":"nguyenngocha","id":13640695,"avatar_url":"https://avatars.githubusercontent.com/u/13640695?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenngocha","html_url":"https://github.com/nguyenngocha","followers_url":"https://api.github.com/users/nguyenngocha/followers","following_url":"https://api.github.com/users/nguyenngocha/following{/other_user}","gists_url":"https://api.github.com/users/nguyenngocha/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenngocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenngocha/subscriptions","organizations_url":"https://api.github.com/users/nguyenngocha/orgs","repos_url":"https://api.github.com/users/nguyenngocha/repos","events_url":"https://api.github.com/users/nguyenngocha/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenngocha/received_events","type":"User","site_admin":false},"body":"<li><%= link_to t(\"users\"), (current_user.is_admin?) ? (admin_users_path) : (users_path) %></li>","created_at":"2016-07-12T06:47:52Z","updated_at":"2016-07-12T06:47:52Z","html_url":"https://github.com/framgia/fels_161/pull/17#discussion_r70384963","pull_request_url":"https://api.github.com/repos/framgia/fels_161/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_161/pulls/comments/70384963"},"html":{"href":"https://github.com/framgia/fels_161/pull/17#discussion_r70384963"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_161/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_161/pulls/17","id":77055282,"html_url":"https://github.com/framgia/fels_161/pull/17","diff_url":"https://github.com/framgia/fels_161/pull/17.diff","patch_url":"https://github.com/framgia/fels_161/pull/17.patch","issue_url":"https://api.github.com/repos/framgia/fels_161/issues/17","number":17,"state":"open","locked":false,"title":"delete-user-admin","user":{"login":"manhchuan","id":14875590,"avatar_url":"https://avatars.githubusercontent.com/u/14875590?v=3","gravatar_id":"","url":"https://api.github.com/users/manhchuan","html_url":"https://github.com/manhchuan","followers_url":"https://api.github.com/users/manhchuan/followers","following_url":"https://api.github.com/users/manhchuan/following{/other_user}","gists_url":"https://api.github.com/users/manhchuan/gists{/gist_id}","starred_url":"https://api.github.com/users/manhchuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manhchuan/subscriptions","organizations_url":"https://api.github.com/users/manhchuan/orgs","repos_url":"https://api.github.com/users/manhchuan/repos","events_url":"https://api.github.com/users/manhchuan/events{/privacy}","received_events_url":"https://api.github.com/users/manhchuan/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-12T03:10:24Z","updated_at":"2016-07-12T06:47:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b75831d3c30a20e3459c02e97a57204f56637d5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_161/pulls/17/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_161/pulls/17/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_161/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_161/issues/17/comments","statuses_url":"https://api.github.com/repos/framgia/fels_161/statuses/f70bcded48fba7109cbcd030795764210cabae4b","head":{"label":"manhchuan:delete-user","ref":"delete-user","sha":"f70bcded48fba7109cbcd030795764210cabae4b","user":{"login":"manhchuan","id":14875590,"avatar_url":"https://avatars.githubusercontent.com/u/14875590?v=3","gravatar_id":"","url":"https://api.github.com/users/manhchuan","html_url":"https://github.com/manhchuan","followers_url":"https://api.github.com/users/manhchuan/followers","following_url":"https://api.github.com/users/manhchuan/following{/other_user}","gists_url":"https://api.github.com/users/manhchuan/gists{/gist_id}","starred_url":"https://api.github.com/users/manhchuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manhchuan/subscriptions","organizations_url":"https://api.github.com/users/manhchuan/orgs","repos_url":"https://api.github.com/users/manhchuan/repos","events_url":"https://api.github.com/users/manhchuan/events{/privacy}","received_events_url":"https://api.github.com/users/manhchuan/received_events","type":"User","site_admin":false},"repo":{"id":62296018,"name":"fels_161","full_name":"manhchuan/fels_161","owner":{"login":"manhchuan","id":14875590,"avatar_url":"https://avatars.githubusercontent.com/u/14875590?v=3","gravatar_id":"","url":"https://api.github.com/users/manhchuan","html_url":"https://github.com/manhchuan","followers_url":"https://api.github.com/users/manhchuan/followers","following_url":"https://api.github.com/users/manhchuan/following{/other_user}","gists_url":"https://api.github.com/users/manhchuan/gists{/gist_id}","starred_url":"https://api.github.com/users/manhchuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manhchuan/subscriptions","organizations_url":"https://api.github.com/users/manhchuan/orgs","repos_url":"https://api.github.com/users/manhchuan/repos","events_url":"https://api.github.com/users/manhchuan/events{/privacy}","received_events_url":"https://api.github.com/users/manhchuan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/manhchuan/fels_161","description":"Framgia Training Management System (training)","fork":true,"url":"https://api.github.com/repos/manhchuan/fels_161","forks_url":"https://api.github.com/repos/manhchuan/fels_161/forks","keys_url":"https://api.github.com/repos/manhchuan/fels_161/keys{/key_id}","collaborators_url":"https://api.github.com/repos/manhchuan/fels_161/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/manhchuan/fels_161/teams","hooks_url":"https://api.github.com/repos/manhchuan/fels_161/hooks","issue_events_url":"https://api.github.com/repos/manhchuan/fels_161/issues/events{/number}","events_url":"https://api.github.com/repos/manhchuan/fels_161/events","assignees_url":"https://api.github.com/repos/manhchuan/fels_161/assignees{/user}","branches_url":"https://api.github.com/repos/manhchuan/fels_161/branches{/branch}","tags_url":"https://api.github.com/repos/manhchuan/fels_161/tags","blobs_url":"https://api.github.com/repos/manhchuan/fels_161/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/manhchuan/fels_161/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/manhchuan/fels_161/git/refs{/sha}","trees_url":"https://api.github.com/repos/manhchuan/fels_161/git/trees{/sha}","statuses_url":"https://api.github.com/repos/manhchuan/fels_161/statuses/{sha}","languages_url":"https://api.github.com/repos/manhchuan/fels_161/languages","stargazers_url":"https://api.github.com/repos/manhchuan/fels_161/stargazers","contributors_url":"https://api.github.com/repos/manhchuan/fels_161/contributors","subscribers_url":"https://api.github.com/repos/manhchuan/fels_161/subscribers","subscription_url":"https://api.github.com/repos/manhchuan/fels_161/subscription","commits_url":"https://api.github.com/repos/manhchuan/fels_161/commits{/sha}","git_commits_url":"https://api.github.com/repos/manhchuan/fels_161/git/commits{/sha}","comments_url":"https://api.github.com/repos/manhchuan/fels_161/comments{/number}","issue_comment_url":"https://api.github.com/repos/manhchuan/fels_161/issues/comments{/number}","contents_url":"https://api.github.com/repos/manhchuan/fels_161/contents/{+path}","compare_url":"https://api.github.com/repos/manhchuan/fels_161/compare/{base}...{head}","merges_url":"https://api.github.com/repos/manhchuan/fels_161/merges","archive_url":"https://api.github.com/repos/manhchuan/fels_161/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/manhchuan/fels_161/downloads","issues_url":"https://api.github.com/repos/manhchuan/fels_161/issues{/number}","pulls_url":"https://api.github.com/repos/manhchuan/fels_161/pulls{/number}","milestones_url":"https://api.github.com/repos/manhchuan/fels_161/milestones{/number}","notifications_url":"https://api.github.com/repos/manhchuan/fels_161/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/manhchuan/fels_161/labels{/name}","releases_url":"https://api.github.com/repos/manhchuan/fels_161/releases{/id}","deployments_url":"https://api.github.com/repos/manhchuan/fels_161/deployments","created_at":"2016-06-30T09:00:31Z","updated_at":"2016-06-28T05:48:42Z","pushed_at":"2016-07-12T06:34:38Z","git_url":"git://github.com/manhchuan/fels_161.git","ssh_url":"git@github.com:manhchuan/fels_161.git","clone_url":"https://github.com/manhchuan/fels_161.git","svn_url":"https://github.com/manhchuan/fels_161","homepage":null,"size":112,"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":"ee866bc11d3c2b6bc9eac347ee28b6a4415d2741","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":62113560,"name":"fels_161","full_name":"framgia/fels_161","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_161","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_161","forks_url":"https://api.github.com/repos/framgia/fels_161/forks","keys_url":"https://api.github.com/repos/framgia/fels_161/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_161/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_161/teams","hooks_url":"https://api.github.com/repos/framgia/fels_161/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_161/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_161/events","assignees_url":"https://api.github.com/repos/framgia/fels_161/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_161/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_161/tags","blobs_url":"https://api.github.com/repos/framgia/fels_161/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_161/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_161/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_161/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_161/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_161/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_161/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_161/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_161/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_161/subscription","commits_url":"https://api.github.com/repos/framgia/fels_161/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_161/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_161/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_161/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_161/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_161/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_161/merges","archive_url":"https://api.github.com/repos/framgia/fels_161/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_161/downloads","issues_url":"https://api.github.com/repos/framgia/fels_161/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_161/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_161/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_161/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_161/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_161/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_161/deployments","created_at":"2016-06-28T05:48:42Z","updated_at":"2016-07-04T02:19:08Z","pushed_at":"2016-07-12T06:34:39Z","git_url":"git://github.com/framgia/fels_161.git","ssh_url":"git@github.com:framgia/fels_161.git","clone_url":"https://github.com/framgia/fels_161.git","svn_url":"https://github.com/framgia/fels_161","homepage":"","size":141,"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":4,"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_161/pulls/17"},"html":{"href":"https://github.com/framgia/fels_161/pull/17"},"issue":{"href":"https://api.github.com/repos/framgia/fels_161/issues/17"},"comments":{"href":"https://api.github.com/repos/framgia/fels_161/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_161/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_161/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_161/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_161/statuses/f70bcded48fba7109cbcd030795764210cabae4b"}}}}
{"actor":{"display_login":"nguyenngocha"}}