{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/tms_28/pulls/comments/35393520","id":35393520,"diff_hunk":"@@ -0,0 +1,15 @@\n+<%= form_for [:admin, @course] do |f| %>\n+  <% @users.each do |user| %>\n+    <div class=\"row\">\n+      <div class=\"col-md-6\">\n+        <%= f.label :user_ids, user.name %>\n+      </div>\n+      <div class=\"col-md-6\">\n+        <%= check_box_tag \"course[user_ids][]\", user.id, @course.users.include?(user) %>\n+      </div>\n+    </div>\n+  <% end %>\n+  <%= hidden_field_tag :update, Settings.add_users %>","path":"app/views/admin/user_courses/_form.html.erb","position":12,"original_position":12,"commit_id":"7fe5293cf40483fa3172efe71d1e64eacfbb0f2f","original_commit_id":"7fe5293cf40483fa3172efe71d1e64eacfbb0f2f","user":{"login":"chuanhtuan","id":5590771,"avatar_url":"https://avatars.githubusercontent.com/u/5590771?v=3","gravatar_id":"","url":"https://api.github.com/users/chuanhtuan","html_url":"https://github.com/chuanhtuan","followers_url":"https://api.github.com/users/chuanhtuan/followers","following_url":"https://api.github.com/users/chuanhtuan/following{/other_user}","gists_url":"https://api.github.com/users/chuanhtuan/gists{/gist_id}","starred_url":"https://api.github.com/users/chuanhtuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuanhtuan/subscriptions","organizations_url":"https://api.github.com/users/chuanhtuan/orgs","repos_url":"https://api.github.com/users/chuanhtuan/repos","events_url":"https://api.github.com/users/chuanhtuan/events{/privacy}","received_events_url":"https://api.github.com/users/chuanhtuan/received_events","type":"User","site_admin":false},"body":"remove, sử dụng pretty url","created_at":"2015-07-24T03:38:37Z","updated_at":"2015-07-24T03:38:37Z","html_url":"https://github.com/framgia/tms_28/pull/30#discussion_r35393520","pull_request_url":"https://api.github.com/repos/framgia/tms_28/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_28/pulls/comments/35393520"},"html":{"href":"https://github.com/framgia/tms_28/pull/30#discussion_r35393520"},"pull_request":{"href":"https://api.github.com/repos/framgia/tms_28/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/tms_28/pulls/30","id":40545382,"html_url":"https://github.com/framgia/tms_28/pull/30","diff_url":"https://github.com/framgia/tms_28/pull/30.diff","patch_url":"https://github.com/framgia/tms_28/pull/30.patch","issue_url":"https://api.github.com/repos/framgia/tms_28/issues/30","number":30,"state":"open","locked":false,"title":"Add user to a course","user":{"login":"ttuan","id":10399018,"avatar_url":"https://avatars.githubusercontent.com/u/10399018?v=3","gravatar_id":"","url":"https://api.github.com/users/ttuan","html_url":"https://github.com/ttuan","followers_url":"https://api.github.com/users/ttuan/followers","following_url":"https://api.github.com/users/ttuan/following{/other_user}","gists_url":"https://api.github.com/users/ttuan/gists{/gist_id}","starred_url":"https://api.github.com/users/ttuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttuan/subscriptions","organizations_url":"https://api.github.com/users/ttuan/orgs","repos_url":"https://api.github.com/users/ttuan/repos","events_url":"https://api.github.com/users/ttuan/events{/privacy}","received_events_url":"https://api.github.com/users/ttuan/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-22T09:22:52Z","updated_at":"2015-07-24T03:38:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f8e4b20a18691c14eeb2e687f1aef1947c282a9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/tms_28/pulls/30/commits","review_comments_url":"https://api.github.com/repos/framgia/tms_28/pulls/30/comments","review_comment_url":"https://api.github.com/repos/framgia/tms_28/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/tms_28/issues/30/comments","statuses_url":"https://api.github.com/repos/framgia/tms_28/statuses/7fe5293cf40483fa3172efe71d1e64eacfbb0f2f","head":{"label":"ttuan:add-user-to-a-course","ref":"add-user-to-a-course","sha":"7fe5293cf40483fa3172efe71d1e64eacfbb0f2f","user":{"login":"ttuan","id":10399018,"avatar_url":"https://avatars.githubusercontent.com/u/10399018?v=3","gravatar_id":"","url":"https://api.github.com/users/ttuan","html_url":"https://github.com/ttuan","followers_url":"https://api.github.com/users/ttuan/followers","following_url":"https://api.github.com/users/ttuan/following{/other_user}","gists_url":"https://api.github.com/users/ttuan/gists{/gist_id}","starred_url":"https://api.github.com/users/ttuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttuan/subscriptions","organizations_url":"https://api.github.com/users/ttuan/orgs","repos_url":"https://api.github.com/users/ttuan/repos","events_url":"https://api.github.com/users/ttuan/events{/privacy}","received_events_url":"https://api.github.com/users/ttuan/received_events","type":"User","site_admin":false},"repo":{"id":39127349,"name":"tms_28","full_name":"ttuan/tms_28","owner":{"login":"ttuan","id":10399018,"avatar_url":"https://avatars.githubusercontent.com/u/10399018?v=3","gravatar_id":"","url":"https://api.github.com/users/ttuan","html_url":"https://github.com/ttuan","followers_url":"https://api.github.com/users/ttuan/followers","following_url":"https://api.github.com/users/ttuan/following{/other_user}","gists_url":"https://api.github.com/users/ttuan/gists{/gist_id}","starred_url":"https://api.github.com/users/ttuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttuan/subscriptions","organizations_url":"https://api.github.com/users/ttuan/orgs","repos_url":"https://api.github.com/users/ttuan/repos","events_url":"https://api.github.com/users/ttuan/events{/privacy}","received_events_url":"https://api.github.com/users/ttuan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ttuan/tms_28","description":"Framgia Training Management System (training)","fork":true,"url":"https://api.github.com/repos/ttuan/tms_28","forks_url":"https://api.github.com/repos/ttuan/tms_28/forks","keys_url":"https://api.github.com/repos/ttuan/tms_28/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ttuan/tms_28/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ttuan/tms_28/teams","hooks_url":"https://api.github.com/repos/ttuan/tms_28/hooks","issue_events_url":"https://api.github.com/repos/ttuan/tms_28/issues/events{/number}","events_url":"https://api.github.com/repos/ttuan/tms_28/events","assignees_url":"https://api.github.com/repos/ttuan/tms_28/assignees{/user}","branches_url":"https://api.github.com/repos/ttuan/tms_28/branches{/branch}","tags_url":"https://api.github.com/repos/ttuan/tms_28/tags","blobs_url":"https://api.github.com/repos/ttuan/tms_28/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ttuan/tms_28/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ttuan/tms_28/git/refs{/sha}","trees_url":"https://api.github.com/repos/ttuan/tms_28/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ttuan/tms_28/statuses/{sha}","languages_url":"https://api.github.com/repos/ttuan/tms_28/languages","stargazers_url":"https://api.github.com/repos/ttuan/tms_28/stargazers","contributors_url":"https://api.github.com/repos/ttuan/tms_28/contributors","subscribers_url":"https://api.github.com/repos/ttuan/tms_28/subscribers","subscription_url":"https://api.github.com/repos/ttuan/tms_28/subscription","commits_url":"https://api.github.com/repos/ttuan/tms_28/commits{/sha}","git_commits_url":"https://api.github.com/repos/ttuan/tms_28/git/commits{/sha}","comments_url":"https://api.github.com/repos/ttuan/tms_28/comments{/number}","issue_comment_url":"https://api.github.com/repos/ttuan/tms_28/issues/comments{/number}","contents_url":"https://api.github.com/repos/ttuan/tms_28/contents/{+path}","compare_url":"https://api.github.com/repos/ttuan/tms_28/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ttuan/tms_28/merges","archive_url":"https://api.github.com/repos/ttuan/tms_28/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ttuan/tms_28/downloads","issues_url":"https://api.github.com/repos/ttuan/tms_28/issues{/number}","pulls_url":"https://api.github.com/repos/ttuan/tms_28/pulls{/number}","milestones_url":"https://api.github.com/repos/ttuan/tms_28/milestones{/number}","notifications_url":"https://api.github.com/repos/ttuan/tms_28/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ttuan/tms_28/labels{/name}","releases_url":"https://api.github.com/repos/ttuan/tms_28/releases{/id}","created_at":"2015-07-15T09:10:55Z","updated_at":"2015-07-15T06:23:15Z","pushed_at":"2015-07-24T02:50:39Z","git_url":"git://github.com/ttuan/tms_28.git","ssh_url":"git@github.com:ttuan/tms_28.git","clone_url":"https://github.com/ttuan/tms_28.git","svn_url":"https://github.com/ttuan/tms_28","homepage":null,"size":276,"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":"0df4852907ab65a40b99546c7831dac8da7710f0","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":39120081,"name":"tms_28","full_name":"framgia/tms_28","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_28","description":"Framgia Training Management System (training)","fork":false,"url":"https://api.github.com/repos/framgia/tms_28","forks_url":"https://api.github.com/repos/framgia/tms_28/forks","keys_url":"https://api.github.com/repos/framgia/tms_28/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/tms_28/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/tms_28/teams","hooks_url":"https://api.github.com/repos/framgia/tms_28/hooks","issue_events_url":"https://api.github.com/repos/framgia/tms_28/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/tms_28/events","assignees_url":"https://api.github.com/repos/framgia/tms_28/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/tms_28/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/tms_28/tags","blobs_url":"https://api.github.com/repos/framgia/tms_28/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/tms_28/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/tms_28/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/tms_28/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/tms_28/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/tms_28/languages","stargazers_url":"https://api.github.com/repos/framgia/tms_28/stargazers","contributors_url":"https://api.github.com/repos/framgia/tms_28/contributors","subscribers_url":"https://api.github.com/repos/framgia/tms_28/subscribers","subscription_url":"https://api.github.com/repos/framgia/tms_28/subscription","commits_url":"https://api.github.com/repos/framgia/tms_28/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/tms_28/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/tms_28/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/tms_28/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/tms_28/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/tms_28/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/tms_28/merges","archive_url":"https://api.github.com/repos/framgia/tms_28/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/tms_28/downloads","issues_url":"https://api.github.com/repos/framgia/tms_28/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/tms_28/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/tms_28/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/tms_28/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/tms_28/labels{/name}","releases_url":"https://api.github.com/repos/framgia/tms_28/releases{/id}","created_at":"2015-07-15T06:23:15Z","updated_at":"2015-07-15T06:23:15Z","pushed_at":"2015-07-24T03:13:04Z","git_url":"git://github.com/framgia/tms_28.git","ssh_url":"git@github.com:framgia/tms_28.git","clone_url":"https://github.com/framgia/tms_28.git","svn_url":"https://github.com/framgia/tms_28","homepage":null,"size":1324,"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":6,"forks":3,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_28/pulls/30"},"html":{"href":"https://github.com/framgia/tms_28/pull/30"},"issue":{"href":"https://api.github.com/repos/framgia/tms_28/issues/30"},"comments":{"href":"https://api.github.com/repos/framgia/tms_28/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/tms_28/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/tms_28/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/tms_28/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/tms_28/statuses/7fe5293cf40483fa3172efe71d1e64eacfbb0f2f"}}}}