{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/tms_70/pulls/comments/88151348","pull_request_review_id":8733856,"id":88151348,"diff_hunk":"@@ -0,0 +1,17 @@\n+module UserCourseHelper\n+\n+  def show_status user_course\n+    case\n+    when user_course.progress?\n+      html = content_tag :span, user_course.status,\n+        class: \"label-status progress-background-color\"\n+    when user_course.finished?\n+      html = content_tag :span, user_course.status,\n+        class: \"label-status finish-background-color\"\n+    else\n+      html = content_tag :span, user_course.status,\n+        class: \"label-status pending-background-color\"\n+    end\n+    html.html_safe","path":"app/helpers/user_course_helper.rb","position":15,"original_position":15,"commit_id":"565bf27f4430e5ced0db8611161b4fc710f7689c","original_commit_id":"565bf27f4430e5ced0db8611161b4fc710f7689c","user":{"login":"phamvanbk11","id":10772245,"avatar_url":"https://avatars.githubusercontent.com/u/10772245?v=3","gravatar_id":"","url":"https://api.github.com/users/phamvanbk11","html_url":"https://github.com/phamvanbk11","followers_url":"https://api.github.com/users/phamvanbk11/followers","following_url":"https://api.github.com/users/phamvanbk11/following{/other_user}","gists_url":"https://api.github.com/users/phamvanbk11/gists{/gist_id}","starred_url":"https://api.github.com/users/phamvanbk11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phamvanbk11/subscriptions","organizations_url":"https://api.github.com/users/phamvanbk11/orgs","repos_url":"https://api.github.com/users/phamvanbk11/repos","events_url":"https://api.github.com/users/phamvanbk11/events{/privacy}","received_events_url":"https://api.github.com/users/phamvanbk11/received_events","type":"User","site_admin":false},"body":"dùng content_tag rồi mà cũng cần html_safe à ","created_at":"2016-11-16T01:18:59Z","updated_at":"2016-11-16T01:19:28Z","html_url":"https://github.com/framgia/tms_70/pull/11#discussion_r88151348","pull_request_url":"https://api.github.com/repos/framgia/tms_70/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_70/pulls/comments/88151348"},"html":{"href":"https://github.com/framgia/tms_70/pull/11#discussion_r88151348"},"pull_request":{"href":"https://api.github.com/repos/framgia/tms_70/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/tms_70/pulls/11","id":93427792,"html_url":"https://github.com/framgia/tms_70/pull/11","diff_url":"https://github.com/framgia/tms_70/pull/11.diff","patch_url":"https://github.com/framgia/tms_70/pull/11.patch","issue_url":"https://api.github.com/repos/framgia/tms_70/issues/11","number":11,"state":"open","locked":false,"title":"Show-courses & subjects of courses -user","user":{"login":"ptnk1995","id":10783339,"avatar_url":"https://avatars.githubusercontent.com/u/10783339?v=3","gravatar_id":"","url":"https://api.github.com/users/ptnk1995","html_url":"https://github.com/ptnk1995","followers_url":"https://api.github.com/users/ptnk1995/followers","following_url":"https://api.github.com/users/ptnk1995/following{/other_user}","gists_url":"https://api.github.com/users/ptnk1995/gists{/gist_id}","starred_url":"https://api.github.com/users/ptnk1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptnk1995/subscriptions","organizations_url":"https://api.github.com/users/ptnk1995/orgs","repos_url":"https://api.github.com/users/ptnk1995/repos","events_url":"https://api.github.com/users/ptnk1995/events{/privacy}","received_events_url":"https://api.github.com/users/ptnk1995/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-12T04:31:33Z","updated_at":"2016-11-16T01:19:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"639504b830fabe06f644c8bda2507722d1a5c9d1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/tms_70/pulls/11/commits","review_comments_url":"https://api.github.com/repos/framgia/tms_70/pulls/11/comments","review_comment_url":"https://api.github.com/repos/framgia/tms_70/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/tms_70/issues/11/comments","statuses_url":"https://api.github.com/repos/framgia/tms_70/statuses/565bf27f4430e5ced0db8611161b4fc710f7689c","head":{"label":"ptnk1995:show-user-courses","ref":"show-user-courses","sha":"565bf27f4430e5ced0db8611161b4fc710f7689c","user":{"login":"ptnk1995","id":10783339,"avatar_url":"https://avatars.githubusercontent.com/u/10783339?v=3","gravatar_id":"","url":"https://api.github.com/users/ptnk1995","html_url":"https://github.com/ptnk1995","followers_url":"https://api.github.com/users/ptnk1995/followers","following_url":"https://api.github.com/users/ptnk1995/following{/other_user}","gists_url":"https://api.github.com/users/ptnk1995/gists{/gist_id}","starred_url":"https://api.github.com/users/ptnk1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptnk1995/subscriptions","organizations_url":"https://api.github.com/users/ptnk1995/orgs","repos_url":"https://api.github.com/users/ptnk1995/repos","events_url":"https://api.github.com/users/ptnk1995/events{/privacy}","received_events_url":"https://api.github.com/users/ptnk1995/received_events","type":"User","site_admin":false},"repo":{"id":73355852,"name":"tms_70","full_name":"ptnk1995/tms_70","owner":{"login":"ptnk1995","id":10783339,"avatar_url":"https://avatars.githubusercontent.com/u/10783339?v=3","gravatar_id":"","url":"https://api.github.com/users/ptnk1995","html_url":"https://github.com/ptnk1995","followers_url":"https://api.github.com/users/ptnk1995/followers","following_url":"https://api.github.com/users/ptnk1995/following{/other_user}","gists_url":"https://api.github.com/users/ptnk1995/gists{/gist_id}","starred_url":"https://api.github.com/users/ptnk1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptnk1995/subscriptions","organizations_url":"https://api.github.com/users/ptnk1995/orgs","repos_url":"https://api.github.com/users/ptnk1995/repos","events_url":"https://api.github.com/users/ptnk1995/events{/privacy}","received_events_url":"https://api.github.com/users/ptnk1995/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ptnk1995/tms_70","description":"Framgia Edu DN - Training Project","fork":true,"url":"https://api.github.com/repos/ptnk1995/tms_70","forks_url":"https://api.github.com/repos/ptnk1995/tms_70/forks","keys_url":"https://api.github.com/repos/ptnk1995/tms_70/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ptnk1995/tms_70/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ptnk1995/tms_70/teams","hooks_url":"https://api.github.com/repos/ptnk1995/tms_70/hooks","issue_events_url":"https://api.github.com/repos/ptnk1995/tms_70/issues/events{/number}","events_url":"https://api.github.com/repos/ptnk1995/tms_70/events","assignees_url":"https://api.github.com/repos/ptnk1995/tms_70/assignees{/user}","branches_url":"https://api.github.com/repos/ptnk1995/tms_70/branches{/branch}","tags_url":"https://api.github.com/repos/ptnk1995/tms_70/tags","blobs_url":"https://api.github.com/repos/ptnk1995/tms_70/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ptnk1995/tms_70/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ptnk1995/tms_70/git/refs{/sha}","trees_url":"https://api.github.com/repos/ptnk1995/tms_70/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ptnk1995/tms_70/statuses/{sha}","languages_url":"https://api.github.com/repos/ptnk1995/tms_70/languages","stargazers_url":"https://api.github.com/repos/ptnk1995/tms_70/stargazers","contributors_url":"https://api.github.com/repos/ptnk1995/tms_70/contributors","subscribers_url":"https://api.github.com/repos/ptnk1995/tms_70/subscribers","subscription_url":"https://api.github.com/repos/ptnk1995/tms_70/subscription","commits_url":"https://api.github.com/repos/ptnk1995/tms_70/commits{/sha}","git_commits_url":"https://api.github.com/repos/ptnk1995/tms_70/git/commits{/sha}","comments_url":"https://api.github.com/repos/ptnk1995/tms_70/comments{/number}","issue_comment_url":"https://api.github.com/repos/ptnk1995/tms_70/issues/comments{/number}","contents_url":"https://api.github.com/repos/ptnk1995/tms_70/contents/{+path}","compare_url":"https://api.github.com/repos/ptnk1995/tms_70/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ptnk1995/tms_70/merges","archive_url":"https://api.github.com/repos/ptnk1995/tms_70/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ptnk1995/tms_70/downloads","issues_url":"https://api.github.com/repos/ptnk1995/tms_70/issues{/number}","pulls_url":"https://api.github.com/repos/ptnk1995/tms_70/pulls{/number}","milestones_url":"https://api.github.com/repos/ptnk1995/tms_70/milestones{/number}","notifications_url":"https://api.github.com/repos/ptnk1995/tms_70/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ptnk1995/tms_70/labels{/name}","releases_url":"https://api.github.com/repos/ptnk1995/tms_70/releases{/id}","deployments_url":"https://api.github.com/repos/ptnk1995/tms_70/deployments","created_at":"2016-11-10T07:05:48Z","updated_at":"2016-11-02T00:33:59Z","pushed_at":"2016-11-15T15:12:32Z","git_url":"git://github.com/ptnk1995/tms_70.git","ssh_url":"git@github.com:ptnk1995/tms_70.git","clone_url":"https://github.com/ptnk1995/tms_70.git","svn_url":"https://github.com/ptnk1995/tms_70","homepage":null,"size":1239,"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":"a6b9336fe1da7e4be63bdc4d2c3e883dc8a4575c","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":72588919,"name":"tms_70","full_name":"framgia/tms_70","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_70","description":"Framgia Edu DN - Training Project","fork":false,"url":"https://api.github.com/repos/framgia/tms_70","forks_url":"https://api.github.com/repos/framgia/tms_70/forks","keys_url":"https://api.github.com/repos/framgia/tms_70/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/tms_70/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/tms_70/teams","hooks_url":"https://api.github.com/repos/framgia/tms_70/hooks","issue_events_url":"https://api.github.com/repos/framgia/tms_70/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/tms_70/events","assignees_url":"https://api.github.com/repos/framgia/tms_70/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/tms_70/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/tms_70/tags","blobs_url":"https://api.github.com/repos/framgia/tms_70/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/tms_70/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/tms_70/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/tms_70/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/tms_70/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/tms_70/languages","stargazers_url":"https://api.github.com/repos/framgia/tms_70/stargazers","contributors_url":"https://api.github.com/repos/framgia/tms_70/contributors","subscribers_url":"https://api.github.com/repos/framgia/tms_70/subscribers","subscription_url":"https://api.github.com/repos/framgia/tms_70/subscription","commits_url":"https://api.github.com/repos/framgia/tms_70/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/tms_70/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/tms_70/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/tms_70/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/tms_70/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/tms_70/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/tms_70/merges","archive_url":"https://api.github.com/repos/framgia/tms_70/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/tms_70/downloads","issues_url":"https://api.github.com/repos/framgia/tms_70/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/tms_70/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/tms_70/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/tms_70/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/tms_70/labels{/name}","releases_url":"https://api.github.com/repos/framgia/tms_70/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/tms_70/deployments","created_at":"2016-11-02T00:33:59Z","updated_at":"2016-11-02T00:33:59Z","pushed_at":"2016-11-15T15:12:33Z","git_url":"git://github.com/framgia/tms_70.git","ssh_url":"git@github.com:framgia/tms_70.git","clone_url":"https://github.com/framgia/tms_70.git","svn_url":"https://github.com/framgia/tms_70","homepage":null,"size":1252,"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":2,"forks":3,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_70/pulls/11"},"html":{"href":"https://github.com/framgia/tms_70/pull/11"},"issue":{"href":"https://api.github.com/repos/framgia/tms_70/issues/11"},"comments":{"href":"https://api.github.com/repos/framgia/tms_70/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/tms_70/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/tms_70/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/tms_70/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/tms_70/statuses/565bf27f4430e5ced0db8611161b4fc710f7689c"}}}}
{"actor":{"display_login":"phamvanbk11"}}