{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/tms_67/pulls/comments/74531670","id":74531670,"diff_hunk":"@@ -1,64 +1,61 @@\n-  <div class=\"container\">\n-    <div class=\"row\">\n-      <div class=\"col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xs-offset-0 col-sm-offset-0 col-md-offset-3 col-lg-offset-3 toppad\" >\n-        <div class=\"panel panel-info\">\n-          <div class=\"panel-heading\">\n-            <h3 class=\"panel-title center\"><%= @user.name %></h3>\n+<div class=\"row\">\n+  <div class=\"col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xs-offset-0 col-sm-offset-0 col-md-offset-3 col-lg-offset-3 toppad\" >\n+    <div class=\"panel panel-info\">\n+      <div class=\"panel-heading\">\n+        <h3 class=\"panel-title center\"><%= @user.name %></h3>\n+      </div>\n+      <div class=\"panel-body\">\n+        <div class=\"row\">\n+          <div class=\"col-md-3 col-lg-3 \" align=\"center\">\n+            <%= gravatar_for @user, {size: Settings.avatar.large_size} %>\n           </div>\n-          <div class=\"panel-body\">\n-            <div class=\"row\">\n-              <div class=\"col-md-3 col-lg-3 \" align=\"center\">\n-                <%= gravatar_for @user, {size: Settings.avatar.large_size} %>\n-              </div>\n-              <div class=\" col-md-9 col-lg-9 \">\n-                <table class=\"table table-user-information\">\n-                  <tbody>\n-                    <tr>\n-                      <td><%= t \"admin.users.index.txt_Email\" %></td>\n-                      <td><%= @user.email %></td>\n-                    </tr>\n-                    <tr>\n-                      <td><%= t \"admin.users.index.txt_Created_At\" %></td>\n-                      <td>\n-                        <%= @user.created_at.strftime(t \"time_format\") %>\n-                      </td>\n-                    </tr>\n-                    <tr>\n-                      <td><%= t \"admin.users.index.txt_Role\" %></td>\n-                      <td>\n-                        <span class=\"label label-danger\">\n-                          <%= @user.role %>\n-                        </span>\n-                      </td>\n-                    </tr>\n-                  </tr>\n-                </tbody>\n-              </table>\n-            </div>\n+          <div class=\" col-md-9 col-lg-9 \">\n+            <table class=\"table table-user-information\">\n+              <tbody>\n+                <tr>\n+                  <td><%= t \"admin.users.index.txt_Email\" %></td>\n+                  <td><%= @user.email %></td>\n+                </tr>\n+                <tr>\n+                  <td><%= t \"admin.users.index.txt_Created_At\" %></td>\n+                  <td>\n+                    <%= @user.created_at.strftime(t \"time_format\") %>\n+                  </td>\n+                </tr>\n+                <tr>\n+                  <td><%= t \"admin.users.index.txt_Role\" %></td>\n+                  <td>\n+                    <span class=\"label label-danger\">\n+                    <%= @user.role %>\n+                    </span>\n+                  </td>\n+                </tr>\n+              </tbody>\n+            </table>\n           </div>\n         </div>\n-        <div class=\"panel-footer\">\n-          <%= mail_to @user.email, class: \"btn btn-sm btn-primary\" do %>\n-            <i class=\"glyphicon glyphicon-envelope\"></i>\n-            <%= t \".send_mail\" %>\n-          <% end %>\n-          <span class=\"pull-right\">\n-            <% if current_user?(@user) || @user.trainee? %>\n-              <%= link_to edit_admin_user_path(@user),\n-                class: \"btn btn-sm btn-warning\" do %>\n-                <i class=\"glyphicon glyphicon-edit\"></i>\n-                <%= t \"admin.users.index.btn_Edit\" %>\n-              <% end %>\n-            <% end %>\n-            <% if @user.trainee? %>\n-              <%= link_to admin_user_path(@user), method: :delete, data:\n-                {confirm: t(\"msg_confirm_delete\")}, class: \"btn btn-sm btn-danger\" do %>\n-                <i class=\"glyphicon glyphicon-remove\"></i>\n-                <%= t \"admin.users.index.btn_Delete\" %>\n-              <% end %>\n-            <% end %>\n-          </span>\n-        </div>\n+      </div>\n+      <div class=\"panel-footer\">\n+        <%= mail_to @user.email, class: \"btn btn-sm btn-primary\" do %>\n+        <i class=\"glyphicon glyphicon-envelope\"></i>\n+        <%= t \".send_mail\" %>","path":"app/views/admin/users/_show.html.erb","position":99,"original_position":99,"commit_id":"16c6a5bf3e855cda5e28c1a38eeea7c9344d15d4","original_commit_id":"16c6a5bf3e855cda5e28c1a38eeea7c9344d15d4","user":{"login":"thangtx88","id":18256324,"avatar_url":"https://avatars.githubusercontent.com/u/18256324?v=3","gravatar_id":"","url":"https://api.github.com/users/thangtx88","html_url":"https://github.com/thangtx88","followers_url":"https://api.github.com/users/thangtx88/followers","following_url":"https://api.github.com/users/thangtx88/following{/other_user}","gists_url":"https://api.github.com/users/thangtx88/gists{/gist_id}","starred_url":"https://api.github.com/users/thangtx88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thangtx88/subscriptions","organizations_url":"https://api.github.com/users/thangtx88/orgs","repos_url":"https://api.github.com/users/thangtx88/repos","events_url":"https://api.github.com/users/thangtx88/events{/privacy}","received_events_url":"https://api.github.com/users/thangtx88/received_events","type":"User","site_admin":false},"body":"ident","created_at":"2016-08-12T01:40:16Z","updated_at":"2016-08-12T01:40:16Z","html_url":"https://github.com/framgia/tms_67/pull/12#discussion_r74531670","pull_request_url":"https://api.github.com/repos/framgia/tms_67/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_67/pulls/comments/74531670"},"html":{"href":"https://github.com/framgia/tms_67/pull/12#discussion_r74531670"},"pull_request":{"href":"https://api.github.com/repos/framgia/tms_67/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/tms_67/pulls/12","id":80936183,"html_url":"https://github.com/framgia/tms_67/pull/12","diff_url":"https://github.com/framgia/tms_67/pull/12.diff","patch_url":"https://github.com/framgia/tms_67/pull/12.patch","issue_url":"https://api.github.com/repos/framgia/tms_67/issues/12","number":12,"state":"open","locked":false,"title":"Show courses of user","user":{"login":"hoangmirs","id":7344405,"avatar_url":"https://avatars.githubusercontent.com/u/7344405?v=3","gravatar_id":"","url":"https://api.github.com/users/hoangmirs","html_url":"https://github.com/hoangmirs","followers_url":"https://api.github.com/users/hoangmirs/followers","following_url":"https://api.github.com/users/hoangmirs/following{/other_user}","gists_url":"https://api.github.com/users/hoangmirs/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangmirs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangmirs/subscriptions","organizations_url":"https://api.github.com/users/hoangmirs/orgs","repos_url":"https://api.github.com/users/hoangmirs/repos","events_url":"https://api.github.com/users/hoangmirs/events{/privacy}","received_events_url":"https://api.github.com/users/hoangmirs/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-11T10:41:13Z","updated_at":"2016-08-12T01:40:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"94cf09752a45e6c5158c31fcd760e74c5b247e41","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/tms_67/pulls/12/commits","review_comments_url":"https://api.github.com/repos/framgia/tms_67/pulls/12/comments","review_comment_url":"https://api.github.com/repos/framgia/tms_67/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/tms_67/issues/12/comments","statuses_url":"https://api.github.com/repos/framgia/tms_67/statuses/16c6a5bf3e855cda5e28c1a38eeea7c9344d15d4","head":{"label":"hoangmirs:71941-user-show-courses","ref":"71941-user-show-courses","sha":"16c6a5bf3e855cda5e28c1a38eeea7c9344d15d4","user":{"login":"hoangmirs","id":7344405,"avatar_url":"https://avatars.githubusercontent.com/u/7344405?v=3","gravatar_id":"","url":"https://api.github.com/users/hoangmirs","html_url":"https://github.com/hoangmirs","followers_url":"https://api.github.com/users/hoangmirs/followers","following_url":"https://api.github.com/users/hoangmirs/following{/other_user}","gists_url":"https://api.github.com/users/hoangmirs/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangmirs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangmirs/subscriptions","organizations_url":"https://api.github.com/users/hoangmirs/orgs","repos_url":"https://api.github.com/users/hoangmirs/repos","events_url":"https://api.github.com/users/hoangmirs/events{/privacy}","received_events_url":"https://api.github.com/users/hoangmirs/received_events","type":"User","site_admin":false},"repo":{"id":64899948,"name":"tms_67","full_name":"hoangmirs/tms_67","owner":{"login":"hoangmirs","id":7344405,"avatar_url":"https://avatars.githubusercontent.com/u/7344405?v=3","gravatar_id":"","url":"https://api.github.com/users/hoangmirs","html_url":"https://github.com/hoangmirs","followers_url":"https://api.github.com/users/hoangmirs/followers","following_url":"https://api.github.com/users/hoangmirs/following{/other_user}","gists_url":"https://api.github.com/users/hoangmirs/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangmirs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangmirs/subscriptions","organizations_url":"https://api.github.com/users/hoangmirs/orgs","repos_url":"https://api.github.com/users/hoangmirs/repos","events_url":"https://api.github.com/users/hoangmirs/events{/privacy}","received_events_url":"https://api.github.com/users/hoangmirs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hoangmirs/tms_67","description":"Framgia Training Management System (training)","fork":true,"url":"https://api.github.com/repos/hoangmirs/tms_67","forks_url":"https://api.github.com/repos/hoangmirs/tms_67/forks","keys_url":"https://api.github.com/repos/hoangmirs/tms_67/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hoangmirs/tms_67/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hoangmirs/tms_67/teams","hooks_url":"https://api.github.com/repos/hoangmirs/tms_67/hooks","issue_events_url":"https://api.github.com/repos/hoangmirs/tms_67/issues/events{/number}","events_url":"https://api.github.com/repos/hoangmirs/tms_67/events","assignees_url":"https://api.github.com/repos/hoangmirs/tms_67/assignees{/user}","branches_url":"https://api.github.com/repos/hoangmirs/tms_67/branches{/branch}","tags_url":"https://api.github.com/repos/hoangmirs/tms_67/tags","blobs_url":"https://api.github.com/repos/hoangmirs/tms_67/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hoangmirs/tms_67/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hoangmirs/tms_67/git/refs{/sha}","trees_url":"https://api.github.com/repos/hoangmirs/tms_67/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hoangmirs/tms_67/statuses/{sha}","languages_url":"https://api.github.com/repos/hoangmirs/tms_67/languages","stargazers_url":"https://api.github.com/repos/hoangmirs/tms_67/stargazers","contributors_url":"https://api.github.com/repos/hoangmirs/tms_67/contributors","subscribers_url":"https://api.github.com/repos/hoangmirs/tms_67/subscribers","subscription_url":"https://api.github.com/repos/hoangmirs/tms_67/subscription","commits_url":"https://api.github.com/repos/hoangmirs/tms_67/commits{/sha}","git_commits_url":"https://api.github.com/repos/hoangmirs/tms_67/git/commits{/sha}","comments_url":"https://api.github.com/repos/hoangmirs/tms_67/comments{/number}","issue_comment_url":"https://api.github.com/repos/hoangmirs/tms_67/issues/comments{/number}","contents_url":"https://api.github.com/repos/hoangmirs/tms_67/contents/{+path}","compare_url":"https://api.github.com/repos/hoangmirs/tms_67/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hoangmirs/tms_67/merges","archive_url":"https://api.github.com/repos/hoangmirs/tms_67/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hoangmirs/tms_67/downloads","issues_url":"https://api.github.com/repos/hoangmirs/tms_67/issues{/number}","pulls_url":"https://api.github.com/repos/hoangmirs/tms_67/pulls{/number}","milestones_url":"https://api.github.com/repos/hoangmirs/tms_67/milestones{/number}","notifications_url":"https://api.github.com/repos/hoangmirs/tms_67/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hoangmirs/tms_67/labels{/name}","releases_url":"https://api.github.com/repos/hoangmirs/tms_67/releases{/id}","deployments_url":"https://api.github.com/repos/hoangmirs/tms_67/deployments","created_at":"2016-08-04T03:40:21Z","updated_at":"2016-08-03T02:28:02Z","pushed_at":"2016-08-11T10:39:15Z","git_url":"git://github.com/hoangmirs/tms_67.git","ssh_url":"git@github.com:hoangmirs/tms_67.git","clone_url":"https://github.com/hoangmirs/tms_67.git","svn_url":"https://github.com/hoangmirs/tms_67","homepage":null,"size":308,"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":"ea689f76588cc62093a01766c658ca19f2aaff9c","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":64808426,"name":"tms_67","full_name":"framgia/tms_67","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/tms_67","description":"Framgia Training Management System (training)","fork":false,"url":"https://api.github.com/repos/framgia/tms_67","forks_url":"https://api.github.com/repos/framgia/tms_67/forks","keys_url":"https://api.github.com/repos/framgia/tms_67/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/tms_67/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/tms_67/teams","hooks_url":"https://api.github.com/repos/framgia/tms_67/hooks","issue_events_url":"https://api.github.com/repos/framgia/tms_67/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/tms_67/events","assignees_url":"https://api.github.com/repos/framgia/tms_67/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/tms_67/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/tms_67/tags","blobs_url":"https://api.github.com/repos/framgia/tms_67/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/tms_67/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/tms_67/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/tms_67/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/tms_67/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/tms_67/languages","stargazers_url":"https://api.github.com/repos/framgia/tms_67/stargazers","contributors_url":"https://api.github.com/repos/framgia/tms_67/contributors","subscribers_url":"https://api.github.com/repos/framgia/tms_67/subscribers","subscription_url":"https://api.github.com/repos/framgia/tms_67/subscription","commits_url":"https://api.github.com/repos/framgia/tms_67/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/tms_67/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/tms_67/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/tms_67/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/tms_67/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/tms_67/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/tms_67/merges","archive_url":"https://api.github.com/repos/framgia/tms_67/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/tms_67/downloads","issues_url":"https://api.github.com/repos/framgia/tms_67/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/tms_67/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/tms_67/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/tms_67/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/tms_67/labels{/name}","releases_url":"https://api.github.com/repos/framgia/tms_67/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/tms_67/deployments","created_at":"2016-08-03T02:28:02Z","updated_at":"2016-08-03T02:28:02Z","pushed_at":"2016-08-11T10:41:14Z","git_url":"git://github.com/framgia/tms_67.git","ssh_url":"git@github.com:framgia/tms_67.git","clone_url":"https://github.com/framgia/tms_67.git","svn_url":"https://github.com/framgia/tms_67","homepage":null,"size":303,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_67/pulls/12"},"html":{"href":"https://github.com/framgia/tms_67/pull/12"},"issue":{"href":"https://api.github.com/repos/framgia/tms_67/issues/12"},"comments":{"href":"https://api.github.com/repos/framgia/tms_67/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/tms_67/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/tms_67/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/tms_67/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/tms_67/statuses/16c6a5bf3e855cda5e28c1a38eeea7c9344d15d4"}}}}
{"actor":{"display_login":"thangtx88"}}